Add a delay before the reboot to stop 0,0,0 teleporting
This commit is contained in:
parent
569544ac7e
commit
8a738f72fb
2
init.lua
2
init.lua
|
@ -29,7 +29,7 @@ checkReboot = function()
|
||||||
if reboot and next(minetest.get_connected_players()) == nil then
|
if reboot and next(minetest.get_connected_players()) == nil then
|
||||||
-- Time to reboot
|
-- Time to reboot
|
||||||
if irc then irc.say("The server is empty! Rebooting...") end
|
if irc then irc.say("The server is empty! Rebooting...") end
|
||||||
minetest.request_shutdown("Rebooting...", true, 0)
|
minetest.request_shutdown("Rebooting...", true, 1)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue