Little bugfix: Register microcontroller0000 as off receptor

This commit is contained in:
Jeija 2012-08-10 11:46:17 +02:00
parent daf1a7e5a3
commit fe6c9f3e09
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@ if (b == 1) then table.insert(rules, {x = 0, y = 0, z = 1}) end
if (c == 1) then table.insert(rules, {x = 1, y = 0, z = 0}) end
if (d == 1) then table.insert(rules, {x = 0, y = 0, z = -1}) end
mesecon:add_rules(nodename, rules)
mesecon:add_receptor_node(nodename, rules)
if nodename ~= "mesecons_microcontroller:microcontroller0000" then
mesecon:add_receptor_node(nodename, rules)
else
mesecon:add_receptor_node_off(nodename)
end
end
end
end