[worldedge] Don't use globalsteps

This commit is contained in:
Wouters Dorian 2015-09-05 15:48:01 +02:00
parent 91ad1b990d
commit 2d16e24d2d
1 changed files with 4 additions and 8 deletions

View File

@ -19,13 +19,7 @@ local waiting_list = {}
}
]]
minetest.register_globalstep(function(dtime)
count = count + dtime
if count < 3 then
return
end
count = 0
local function tick()
for k, v in pairs(waiting_list) do
if v.player and v.player:is_player() then
local pos = get_surface_pos(v.pos)
@ -102,7 +96,9 @@ minetest.register_globalstep(function(dtime)
end
end
end
end)
minetest.after(3, tick)
end
tick()
function get_surface_pos(pos)
local minp = {