fix remaining issues

This commit is contained in:
BuckarooBanzay
2020-09-14 13:02:23 +02:00
parent 87734f7ff0
commit 0bd8932721
4 changed files with 5 additions and 7 deletions

View File

@ -60,7 +60,7 @@ local function update_real_port_states(pos, rule_name, new_state)
if rule_name.x == nil then
for _, rname in ipairs(rule_name) do
local port = pos_to_side[rname.x + (2 * rname.z) + 3]
L[port] = (newstate == "on") and 1 or 0
L[port] = (new_state == "on") and 1 or 0
end
else
local port = pos_to_side[rule_name.x + (2 * rule_name.z) + 3]