From: Sokomine Date: Wed, 1 Jul 2015 16:56:27 +0000 (+0200) Subject: Fix world.mt not written when selecting mode X-Git-Tag: 0.4.13~153 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=75d2cfef5cedd47dd0141953f61ae6ba5b0c8ded;p=oweals%2Fminetest.git Fix world.mt not written when selecting mode --- 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