Skip to content

Commit

Permalink
Fix for batches with single element
Browse files Browse the repository at this point in the history
  • Loading branch information
andriyndev committed Sep 4, 2024
1 parent 25d67ce commit cdb3fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inventory.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit cdb3fe0

Please sign in to comment.