From 75d2cfef5cedd47dd0141953f61ae6ba5b0c8ded Mon Sep 17 00:00:00 2001 From: Sokomine Date: Wed, 1 Jul 2015 18:56:27 +0200 Subject: [PATCH] Fix world.mt not written when selecting mode --- builtin/mainmenu/common.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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