mirror of
https://github.com/HybridDog/nether-pack.git
synced 2024-12-26 02:30:24 +01:00
add support to the function delayer mod
This commit is contained in:
parent
b2dd95eb50
commit
03da51be24
@ -4,4 +4,5 @@ riesenpilz
|
|||||||
stairs
|
stairs
|
||||||
vector_extras
|
vector_extras
|
||||||
fence_registration?
|
fence_registration?
|
||||||
|
function_delayer?
|
||||||
watershed?
|
watershed?
|
||||||
|
@ -224,9 +224,11 @@ if nether_prisons then
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- the function delayer mod works similar to a scheduler
|
||||||
|
local delay_function = minetest.delay_function or minetest.after
|
||||||
local function tick()
|
local function tick()
|
||||||
update_players()
|
update_players()
|
||||||
minetest.after(2, tick)
|
minetest.after(0.5, function() delay_function(1.5, tick) end)
|
||||||
end
|
end
|
||||||
tick()
|
tick()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user