generated from your-land/yl_template
14 lines
209 B
Lua
14 lines
209 B
Lua
local timer = 0
|
|
|
|
local gs = function(dtime)
|
|
timer = timer + dtime
|
|
if timer <= yl_cities.config.interval then
|
|
return
|
|
end
|
|
timer = 0
|
|
|
|
-- do stuff
|
|
end
|
|
|
|
minetest.register_globalstep(gs)
|