globalstep.lua 227 B

123456
  1. minetest.register_globalstep(function(dtime)
  2. if not minetestd.services["core"].enabled then return end
  3. for _,service in pairs(minetestd.services) do
  4. if service.enabled and service.step then service.step(dtime) end
  5. end
  6. end)