forked from mtcontrib/pipeworks
Fix typo in luatube update_real_port_states helper
This commit is contained in:
parent
ee6c9991b9
commit
63bee98948
@ -79,7 +79,7 @@ local function update_real_port_states(pos, rule_name, new_state)
|
|||||||
if rule_name.x == nil then
|
if rule_name.x == nil then
|
||||||
for _, rname in ipairs(rule_name) do
|
for _, rname in ipairs(rule_name) do
|
||||||
local port = pos_to_side[rname.x + (2 * rname.y) + (3 * rname.z) + 4]
|
local port = pos_to_side[rname.x + (2 * rname.y) + (3 * rname.z) + 4]
|
||||||
L[port] = (newstate == "on") and 1 or 0
|
L[port] = (new_state == "on") and 1 or 0
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
local port = pos_to_side[rule_name.x + (2 * rule_name.y) + (3 * rule_name.z) + 4]
|
local port = pos_to_side[rule_name.x + (2 * rule_name.y) + (3 * rule_name.z) + 4]
|
||||||
|
Loading…
Reference in New Issue
Block a user