1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00: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
end end
local timer = 0 --doesn't work if the server lags local function tick()
minetest.register_globalstep(function(dtime) update_players()
timer = timer + dtime; minetest.after(2, tick)
if timer >= 2 then end
--minetest.after(1, update_players) tick()
update_players()
timer = 0
end
end)
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
minetest.after(0, function(player) minetest.after(0, function(player)