Skip to content
Snippets Groups Projects
Commit 75d2cfef authored by Sokomine's avatar Sokomine Committed by est31
Browse files

Fix world.mt not written when selecting mode

parent 2e44873a
No related branches found
No related tags found
No related merge requests found
...@@ -311,7 +311,8 @@ function menu_worldmt(selected, setting, value) ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment