1
0
mirror of https://github.com/minetest/minetest.git synced 2025-07-03 00:20:21 +02:00

Fix world.mt not written when selecting mode

This commit is contained in:
Sokomine
2015-07-01 18:56:27 +02:00
committed by jp
parent 2e44873ac9
commit b594fd6155

View File

@ -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