aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
Diffstat (limited to 'builtin')
-rw-r--r--builtin/mainmenu/common.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua
index 5cd16a9ea..cbc95bc85 100644
--- a/builtin/mainmenu/common.lua
+++ b/builtin/mainmenu/common.lua
@@ -311,7 +311,8 @@ function menu_worldmt(selected, setting, value)
if not world_conf:write() then
core.log("error", "Failed to write world config file")
end
- return world_conf:set(setting, value)
+ world_conf:set(setting, value)
+ world_conf:write()
else
return world_conf:get(setting)
end