- if core.is_yes(fields["cb_hide_mpcontent"]) then
- current.hide_modpackcontents = true
- this.data.hide_modpackcontents = true
- else
- current.hide_modpackcontents = false
- this.data.hide_modpackcontents = false
+ if fields["cb_hide_gamemods"] ~= nil then
+ if core.is_yes(fields["cb_hide_gamemods"]) then
+ current.hide_game = true
+ this.data.hide_gamemods = true
+ core.setting_set("world_config_hide_gamemods", "true")
+ else
+ current.hide_game = false
+ this.data.hide_gamemods = false
+ core.setting_set("world_config_hide_gamemods", "false")
+ end
+ end
+
+ if fields["cb_hide_mpcontent"] ~= nil then
+ if core.is_yes(fields["cb_hide_mpcontent"]) then
+ current.hide_modpackcontents = true
+ this.data.hide_modpackcontents = true
+ core.setting_set("world_config_hide_modpackcontents", "true")
+ else
+ current.hide_modpackcontents = false
+ this.data.hide_modpackcontents = false
+ core.setting_set("world_config_hide_modpackcontents", "false")
+ end