Globalstep

This commit is contained in:
AliasAlreadyTaken 2021-08-15 03:45:54 +02:00
parent 0c7a2023b0
commit a5fa6f709c
1 changed files with 13 additions and 0 deletions

13
globalsteps.lua Normal file
View File

@ -0,0 +1,13 @@
local timer = 0
local gs = function(dtime)
timer = timer + dtime
if timer <= yl_template.config.interval then
return
end
timer = 0
-- do stuff
end
minetest.register_globalstep(gs)