From e0f9f15d1dcc2bdfc260a5503eced1294d4317bc Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Tue, 10 Sep 2013 21:24:49 +0200 Subject: Use engine.is_yes() in mainmenu --- builtin/modmgr.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'builtin/modmgr.lua') 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 -- cgit v1.2.3