mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 01:25:20 +02:00
Use engine.is_yes() in mainmenu
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user