aboutsummaryrefslogtreecommitdiff
path: root/builtin/modmgr.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/modmgr.lua')
-rw-r--r--builtin/modmgr.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/builtin/modmgr.lua b/builtin/modmgr.lua
index f736d8e39..d9579c652 100644
--- a/builtin/modmgr.lua
+++ b/builtin/modmgr.lua
@@ -658,7 +658,7 @@ function modmgr.handle_configure_world_buttons(fields)
end
if fields["cb_mod_enable"] ~= nil then
- local toset = (fields["cb_mod_enable"] == "true")
+ local toset = engine.is_yes(fields["cb_mod_enable"])
modmgr.world_config_enable_mod(toset)
end
@@ -675,7 +675,7 @@ function modmgr.handle_configure_world_buttons(fields)
current = {}
end
- if fields["cb_hide_gamemods"] == "true" then
+ if engine.is_yes(fields["cb_hide_gamemods"]) then
current.hide_game = true
modmgr.hide_gamemods = true
else
@@ -693,7 +693,7 @@ function modmgr.handle_configure_world_buttons(fields)
current = {}
end
- if fields["cb_hide_mpcontent"] == "true" then
+ if engine.is_yes(fields["cb_hide_mpcontent"]) then
current.hide_modpackcontents = true
modmgr.hide_modpackcontents = true
else