mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
[forceload] Use minetest.after, using already-imposed 5 sec delay
This commit is contained in:
parent
b41916c1ea
commit
a6faed9f94
@ -143,16 +143,12 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
local function tick()
|
||||
minetest.after(5, tick)
|
||||
--print("Verifying...")
|
||||
flm:verify()
|
||||
flm:clean()
|
||||
end
|
||||
|
||||
local count = 0
|
||||
minetest.register_globalstep(function(dtime)
|
||||
count = count + dtime
|
||||
elapsed_time = elapsed_time + dtime
|
||||
if count > 5 then
|
||||
count = 0
|
||||
--print("Verifying...")
|
||||
flm:verify()
|
||||
flm:clean()
|
||||
end
|
||||
end)
|
||||
tick()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user