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:
parent
d347ba484a
commit
de3c1e00da
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user