mirror of
https://github.com/minetest/minetest.git
synced 2024-12-25 07:32:24 +01:00
Fix world.mt not written when selecting mode
This commit is contained in:
parent
2e44873ac9
commit
75d2cfef5c
@ -311,7 +311,8 @@ function menu_worldmt(selected, setting, value)
|
|||||||
if not world_conf:write() then
|
if not world_conf:write() then
|
||||||
core.log("error", "Failed to write world config file")
|
core.log("error", "Failed to write world config file")
|
||||||
end
|
end
|
||||||
return world_conf:set(setting, value)
|
world_conf:set(setting, value)
|
||||||
|
world_conf:write()
|
||||||
else
|
else
|
||||||
return world_conf:get(setting)
|
return world_conf:get(setting)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user