1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 18:20:36 +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)
timer = timer + dtime;
if timer >= 2 then
--minetest.after(1, update_players)
update_players() update_players()
timer = 0 minetest.after(2, tick)
end end
end) tick()
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)
minetest.after(0, function(player) minetest.after(0, function(player)