1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-08 11:30:21 +01:00

[shutdown] Don't use globalsteps

This commit is contained in:
Wouters Dorian 2015-07-31 11:56:19 +02:00
parent 0edff51305
commit d77c8c2479

View File

@ -28,14 +28,7 @@ end
local timer = 0
minetest.register_globalstep(function(dtime)
timer = timer+dtime
-- if timer < X then = X seconde temps que s'affiche les message
-- Default 300 seconde = 5 minute
if timer < 60 then
return
end
timer = 0
local function tick()
local heure = os.date("%H")
local minute = os.date("%M")
-- Warn every days
@ -59,4 +52,7 @@ minetest.register_globalstep(function(dtime)
-- minetest.request_shutdown()
end
end
end)
minetest.after(60, tick)
end
tick()