From a4efdc196c337ae2e5b4fa29c0eeda31a9489586 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Wed, 6 Nov 2019 21:20:26 +0100 Subject: atlatc: fix operation panel not in ndb, add warning when node is not found on queue run --- advtrains_luaautomation/interrupt.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'advtrains_luaautomation/interrupt.lua') 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 -- cgit v1.2.3