1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 17:50:37 +01:00

[nether] Don't use globalsteps

This commit is contained in:
Wouters Dorian 2015-09-05 15:52:24 +02:00
parent d347ba484a
commit de3c1e00da

View File

@ -189,15 +189,11 @@ local function update_players()
end
end
local timer = 0 --doesn't work if the server lags
minetest.register_globalstep(function(dtime)
timer = timer + dtime;
if timer >= 2 then
--minetest.after(1, update_players)
update_players()
timer = 0
end
end)
local function tick()
update_players()
minetest.after(2, tick)
end
tick()
minetest.register_on_joinplayer(function(player)
minetest.after(0, function(player)