summaryrefslogtreecommitdiff
path: root/mesecons.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons.lua')
-rw-r--r--mesecons.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesecons.lua b/mesecons.lua
index 51917ed..b126381 100644
--- a/mesecons.lua
+++ b/mesecons.lua
@@ -657,6 +657,10 @@ core.register_abm({
end
end
if not def then return end
+ if not mem.upcalls then
+ --Memory ended up blank somehow
+ return
+ end
local newstate = def.func(mem,floor)
if newstate ~= oldstate then
node.name = (newstate and "celevator:mesecons_output_on" or "celevator:mesecons_output_off")