From cdb3fe06dd53e9c3839f77849a3b9fb2d656bd46 Mon Sep 17 00:00:00 2001 From: Andrii Date: Thu, 5 Sep 2024 00:34:32 +0300 Subject: [PATCH] Fix for batches with single element --- inventory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory.lua b/inventory.lua index 6e0c6cc..3692207 100644 --- a/inventory.lua +++ b/inventory.lua @@ -19,7 +19,7 @@ local function send_and_clear_batch(pos, channel) if #batched_messages[pos_hash] == 1 then -- If there is only one message is the batch, don't send it in a batch digilines.receptor_send(pos, digilines.rules.default, channel, - next(batched_messages[pos_hash])) + batched_messages[pos_hash][1]) else digilines.receptor_send(pos, digilines.rules.default, channel, { action = "batch",