forked from minetest-mods/MoreMesecons
dont save if its not necessary on shutdown
This commit is contained in:
parent
b657ea2c3a
commit
918d27db1f
@ -49,7 +49,11 @@ local function save()
|
||||
end)
|
||||
end
|
||||
|
||||
minetest.register_on_shutdown(save_to_file)
|
||||
minetest.register_on_shutdown(function()
|
||||
if saving then
|
||||
save_to_file()
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
-- test if it works
|
||||
|
Loading…
Reference in New Issue
Block a user