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 update_players()
minetest.register_globalstep(function(dtime) minetest.after(2, tick)
timer = timer + dtime; end
if timer >= 2 then tick()
--minetest.after(1, update_players)
update_players()
timer = 0
end
end)
-- set background when player joins -- set background when player joins
minetest.register_on_joinplayer(function(player) minetest.register_on_joinplayer(function(player)