diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-04-29 19:13:15 +0200 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-04-29 19:13:15 +0200 |
commit | 331db7ba5f4e4b308c1f8efa93c2b40c5139766d (patch) | |
tree | c9dc5d02d6c1986ef420004f94154c61be0cc1a9 /advtrains/advtrains_luaautomation/interrupt.lua | |
parent | 337db2a573ccaa1672e713855022e96106679803 (diff) | |
download | advtrains-331db7ba5f4e4b308c1f8efa93c2b40c5139766d.tar.gz advtrains-331db7ba5f4e4b308c1f8efa93c2b40c5139766d.tar.bz2 advtrains-331db7ba5f4e4b308c1f8efa93c2b40c5139766d.zip |
Unify globalstep, load and save of all components into single functions
Diffstat (limited to 'advtrains/advtrains_luaautomation/interrupt.lua')
-rw-r--r-- | advtrains/advtrains_luaautomation/interrupt.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advtrains/advtrains_luaautomation/interrupt.lua b/advtrains/advtrains_luaautomation/interrupt.lua index 4d59db5..fa340b8 100644 --- a/advtrains/advtrains_luaautomation/interrupt.lua +++ b/advtrains/advtrains_luaautomation/interrupt.lua @@ -21,7 +21,7 @@ function iq.add(t, pos, evtdata) run=true end -minetest.register_globalstep(function(dtime) +function iq.mainloop(dtime) if run then timer=timer + math.min(dtime, 0.2) for i=1,#queue do |