mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-03-26 14:21:33 +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 #batched_messages[pos_hash] == 1 then
|
||||||
-- If there is only one message is the batch, don't send it in a batch
|
-- If there is only one message is the batch, don't send it in a batch
|
||||||
digilines.receptor_send(pos, digilines.rules.default, channel,
|
digilines.receptor_send(pos, digilines.rules.default, channel,
|
||||||
next(batched_messages[pos_hash]))
|
batched_messages[pos_hash][1])
|
||||||
else
|
else
|
||||||
digilines.receptor_send(pos, digilines.rules.default, channel, {
|
digilines.receptor_send(pos, digilines.rules.default, channel, {
|
||||||
action = "batch",
|
action = "batch",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user