summaryrefslogtreecommitdiff
path: root/builtin/modmgr.lua
diff options
context:
space:
mode:
authorPilzAdam <pilzadam@minetest.net>2013-09-10 21:24:49 +0200
committerPilzAdam <pilzadam@minetest.net>2013-09-10 21:38:50 +0200
commite0f9f15d1dcc2bdfc260a5503eced1294d4317bc (patch)
tree1d27fd2f325d7d67e2c6496d4cb085c7b36f12c0 /builtin/modmgr.lua
parent214da7bef9ed6e3ceff4d2bbff1afd0675497f79 (diff)
downloadminetest-e0f9f15d1dcc2bdfc260a5503eced1294d4317bc.tar.gz
minetest-e0f9f15d1dcc2bdfc260a5503eced1294d4317bc.tar.bz2
minetest-e0f9f15d1dcc2bdfc260a5503eced1294d4317bc.zip
Use engine.is_yes() in mainmenu
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