Skip to content

Commit

Permalink
Add a default globaltimer
Browse files Browse the repository at this point in the history
Now mods like console will work as-is
  • Loading branch information
Montandalar committed Feb 15, 2021
1 parent cb3e112 commit 497bd26
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.lua
Expand Up @@ -72,3 +72,8 @@ function Timekeeper( this )

return self
end

globaltimer = Timekeeper({})
minetest.register_globalstep(function(dtime)
globaltimer.on_step(dtime)
end)

0 comments on commit 497bd26

Please sign in to comment.