summaryrefslogtreecommitdiff
path: root/mesecons_gates
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2013-01-09 16:56:25 +0100
committerJeija <norrepli@gmail.com>2013-01-09 16:56:25 +0100
commit841bc70b97e237477b0dd9ba36fd9cd307daf581 (patch)
tree73cf0ce33fdbff460796fa776b0009dfdfc8e894 /mesecons_gates
parent17579a6aa139d306780bcb2556b74dde667c0697 (diff)
downloadmesecons-841bc70b97e237477b0dd9ba36fd9cd307daf581.tar
mesecons-841bc70b97e237477b0dd9ba36fd9cd307daf581.tar.gz
mesecons-841bc70b97e237477b0dd9ba36fd9cd307daf581.tar.bz2
mesecons-841bc70b97e237477b0dd9ba36fd9cd307daf581.tar.xz
mesecons-841bc70b97e237477b0dd9ba36fd9cd307daf581.zip
Fix a bug that occured when using a receptor placed directly next to a
gate. We need to call a changesignal even if the gate/other effector is still connected to a power source in a way.
Diffstat (limited to 'mesecons_gates')
-rw-r--r--mesecons_gates/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesecons_gates/init.lua b/mesecons_gates/init.lua
index f49da0b..0e3d934 100644
--- a/mesecons_gates/init.lua
+++ b/mesecons_gates/init.lua
@@ -99,7 +99,7 @@ gates = {
{name = "xor" , inputnumber = 2}}
local onoff, drop, nodename, description, groups
-for i, gate in ipairs(gates) do
+for _, gate in ipairs(gates) do
if gate.inputnumber == 1 then
get_rules = gate_get_input_rules_oneinput
elseif gate.inputnumber == 2 then