diff options
author | Jeija <jeija@mesecons.net> | 2014-02-26 16:09:27 +0100 |
---|---|---|
committer | Jeija <jeija@mesecons.net> | 2014-02-26 16:09:27 +0100 |
commit | d3aa2b794b38e04926a0d23f236bfca5de82b01b (patch) | |
tree | 2e7ffa3bc716a43191734f7589b4283e03a6d3d9 | |
parent | fba6b07edcd641b6081688cd1efb1e31392a2577 (diff) | |
parent | 6876aa6a4fbe042ccffad9be345bdf789f61bd67 (diff) |
Merge remote-tracking branch 'CiaranG/tableperf'
-rw-r--r-- | digilines/internal.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/digilines/internal.lua b/digilines/internal.lua index 5226cfb..4953fe9 100644 --- a/digilines/internal.lua +++ b/digilines/internal.lua @@ -66,9 +66,8 @@ function digiline:rules_link_anydir(output, input) end function digiline:transmit(pos, channel, msg, checked) - checked = checked or {} local checkedid = tostring(pos.x).."_"..tostring(pos.y).."_"..tostring(pos.z) - if checked[checkedid] then return checked end + if checked[checkedid] then return end checked[checkedid] = true local node = minetest.get_node(pos) @@ -86,9 +85,9 @@ function digiline:transmit(pos, channel, msg, checked) local rules = digiline:importrules(spec.wire.rules, node) for _,rule in ipairs(rules) do if digiline:rules_link(pos, digiline:addPosRule(pos, rule)) then - checked = digiline:transmit(digiline:addPosRule(pos, rule), channel, msg, checked) + digiline:transmit(digiline:addPosRule(pos, rule), channel, msg, checked) end end end - return checked + return end |