summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortuedel <tuedel@tdl.gr>2020-06-20 14:54:15 +0000
committergroxxda <ried@mytum.de>2020-06-30 09:17:46 +0000
commit63bee98948311155e7b5e240fa4ef147b1764bf9 (patch)
tree82548c3387d1417f830f652889ab5968f7d47c20
parentee6c9991b93d79c03b2557906ba7ad5cf868491a (diff)
downloadpipeworks-63bee98948311155e7b5e240fa4ef147b1764bf9.tar
pipeworks-63bee98948311155e7b5e240fa4ef147b1764bf9.tar.gz
pipeworks-63bee98948311155e7b5e240fa4ef147b1764bf9.tar.bz2
pipeworks-63bee98948311155e7b5e240fa4ef147b1764bf9.tar.xz
pipeworks-63bee98948311155e7b5e240fa4ef147b1764bf9.zip
Fix typo in luatube update_real_port_states helper
-rw-r--r--lua_tube.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua_tube.lua b/lua_tube.lua
index 8be3169..543c388 100644
--- a/lua_tube.lua
+++ b/lua_tube.lua
@@ -79,7 +79,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.y) + (3 * rname.z) + 4]
- 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.y) + (3 * rule_name.z) + 4]