aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation/interrupt.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2019-11-06 21:20:26 +0100
committerorwell96 <orwell@bleipb.de>2019-11-06 21:20:26 +0100
commita4efdc196c337ae2e5b4fa29c0eeda31a9489586 (patch)
treee870abce6d0cf080835157442b58c09714323849 /advtrains_luaautomation/interrupt.lua
parent74f7233d216da5a37a36fd54be4d8d6a4a278c8b (diff)
downloadadvtrains-a4efdc196c337ae2e5b4fa29c0eeda31a9489586.tar.gz
advtrains-a4efdc196c337ae2e5b4fa29c0eeda31a9489586.tar.bz2
advtrains-a4efdc196c337ae2e5b4fa29c0eeda31a9489586.zip
atlatc: fix operation panel not in ndb, add warning when node is not found on queue run
Diffstat (limited to 'advtrains_luaautomation/interrupt.lua')
-rw-r--r--advtrains_luaautomation/interrupt.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/advtrains_luaautomation/interrupt.lua b/advtrains_luaautomation/interrupt.lua
index 718b8c7..525c3b4 100644
--- a/advtrains_luaautomation/interrupt.lua
+++ b/advtrains_luaautomation/interrupt.lua
@@ -34,6 +34,8 @@ function iq.mainloop(dtime)
local ndef=minetest.registered_nodes[node.name]
if ndef and ndef.luaautomation and ndef.luaautomation.fire_event then
ndef.luaautomation.fire_event(pos, evtdata)
+ else
+ atwarn("[atlatc][interrupt] Couldn't run event",evtdata.type,"on",pos,", something wrong with the node",node)
end
table.remove(queue, i)
i=i-1