mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix world.mt not written when selecting mode
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user