Fix duplicate messages (#52)

* Fixes duplicate messages
This commit is contained in:
12Me21 2019-03-06 00:41:50 -05:00 committed by sofar
parent a5e2f05d92
commit c7f4185e92

@ -86,6 +86,12 @@ local function queue_dequeue(queue)
end
function digilines.transmit(pos, channel, msg, checked)
local checkedID = minetest.hash_node_position(pos)
if checked[checkedID] then
return
end
checked[checkedID] = true
digilines.vm_begin()
local queue = queue_new()
queue_enqueue(queue, pos)