1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2024-11-13 05:50:20 +01:00

Don't use globalsteps

This commit is contained in:
Wouters Dorian 2015-09-05 15:52:24 +02:00 committed by HybridDog
parent 99eceb10eb
commit b2dd95eb50

View File

@ -224,16 +224,11 @@ if nether_prisons then
end
end
-- fix wrong player positions
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()
-- set background when player joins
minetest.register_on_joinplayer(function(player)