mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-03-24 05:10:21 +01:00
Fix for batches with single element
This commit is contained in:
parent
25d67cee6a
commit
cdb3fe06dd
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user