mirror of
https://github.com/minetest-mods/digilines.git
synced 2025-06-30 15:30:22 +02:00
[LuaCheck]: Various changes and improvements (#65)
* Add GitHub workflow * Fix LuaCheck warnings * Add build status badge on README.md
This commit is contained in:
@ -92,7 +92,7 @@ function digilines.transmit(pos, channel, msg, checked)
|
||||
return
|
||||
end
|
||||
checked[checkedID] = true
|
||||
|
||||
|
||||
digilines.vm_begin()
|
||||
local queue = queue_new()
|
||||
queue_enqueue(queue, pos)
|
||||
@ -112,9 +112,9 @@ function digilines.transmit(pos, channel, msg, checked)
|
||||
for _, rule in ipairs(rules) do
|
||||
local nextPos = digilines.addPosRule(curPos, rule)
|
||||
if digilines.rules_link(curPos, nextPos) then
|
||||
local checkedID = minetest.hash_node_position(nextPos)
|
||||
if not checked[checkedID] then
|
||||
checked[checkedID] = true
|
||||
local checkedID2 = minetest.hash_node_position(nextPos)
|
||||
if not checked[checkedID2] then
|
||||
checked[checkedID2] = true
|
||||
queue_enqueue(queue, nextPos)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user