From ff3d25190bc08a29c2c0f11b32c67dfc26ae0fde Mon Sep 17 00:00:00 2001 From: cheapie Date: Mon, 25 May 2026 15:51:06 -0500 Subject: Fix more rare crashes I've only seen these break when players do weird stuff with the intention of breaking things --- mesecons.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesecons.lua') 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") -- cgit v1.2.3