From 45e74cd1c255fb62aa06d40c92c637a534c65c78 Mon Sep 17 00:00:00 2001 From: cheapie Date: Sat, 11 Apr 2026 09:25:47 -0500 Subject: Fix a rare crash --- controller.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'controller.lua') diff --git a/controller.lua b/controller.lua index 2c6c9b6..a77a2e7 100644 --- a/controller.lua +++ b/controller.lua @@ -595,7 +595,7 @@ function celevator.controller.run(pos,event) celevator.storage:set_string("controller_equeue",core.serialize(celevator.controller.equeue)) if #celevator.controller.equeue[hash] > 5 then local pstring = core.pos_to_string(pos) - local queuelen = #celevator.controller.queue[hash] + local queuelen = #celevator.controller.equeue[hash] local message = string.format("[celevator] [controller] Async process for controller at %s is falling behind, %d events in queue",pstring,queuelen) core.log("warning",message) end -- cgit v1.2.3