aboutsummaryrefslogtreecommitdiff
path: root/advtrains/advtrains_luaautomation/interrupt.lua
diff options
context:
space:
mode:
authororwell96 <mono96.mml@gmail.com>2017-04-29 19:13:15 +0200
committerorwell96 <mono96.mml@gmail.com>2017-04-29 19:13:15 +0200
commit331db7ba5f4e4b308c1f8efa93c2b40c5139766d (patch)
treec9dc5d02d6c1986ef420004f94154c61be0cc1a9 /advtrains/advtrains_luaautomation/interrupt.lua
parent337db2a573ccaa1672e713855022e96106679803 (diff)
downloadadvtrains-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.lua2
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