1
0
mirror of https://github.com/HybridDog/nether-pack.git synced 2024-12-26 02:30:24 +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
end end
-- fix wrong player positions local function tick()
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() update_players()
timer = 0 minetest.after(2, tick)
end end
end) tick()
-- set background when player joins -- set background when player joins
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)