aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu
diff options
context:
space:
mode:
authorSokomine <wegwerf@anarres.dyndns.org>2015-07-01 18:56:27 +0200
committerest31 <MTest31@outlook.com>2015-07-01 19:50:24 +0200
commit75d2cfef5cedd47dd0141953f61ae6ba5b0c8ded (patch)
tree520f7a25cb4d0cf65af4156ea4576f1c0b56c790 /builtin/mainmenu
parent2e44873ac987c484ef7f9ace5eeabfd376f6d8f8 (diff)
downloadminetest-75d2cfef5cedd47dd0141953f61ae6ba5b0c8ded.tar.gz
minetest-75d2cfef5cedd47dd0141953f61ae6ba5b0c8ded.tar.bz2
minetest-75d2cfef5cedd47dd0141953f61ae6ba5b0c8ded.zip
Fix world.mt not written when selecting mode
Diffstat (limited to 'builtin/mainmenu')
-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