diff options
author | Jeija <norrepli@gmail.com> | 2012-08-10 11:46:17 +0200 |
---|---|---|
committer | Jeija <norrepli@gmail.com> | 2012-08-10 11:46:17 +0200 |
commit | fe6c9f3e09b317a9b5d6e20f4d91ff7699e75918 (patch) | |
tree | 317d1a41f1eca29ce5dac3aeafc0605b3fc85183 | |
parent | daf1a7e5a3381453aa92e15e0cde1c10b3b5c40e (diff) | |
download | mesecons-fe6c9f3e09b317a9b5d6e20f4d91ff7699e75918.tar mesecons-fe6c9f3e09b317a9b5d6e20f4d91ff7699e75918.tar.gz mesecons-fe6c9f3e09b317a9b5d6e20f4d91ff7699e75918.tar.bz2 mesecons-fe6c9f3e09b317a9b5d6e20f4d91ff7699e75918.tar.xz mesecons-fe6c9f3e09b317a9b5d6e20f4d91ff7699e75918.zip |
Little bugfix: Register microcontroller0000 as off receptor
-rw-r--r-- | mesecons_microcontroller/init.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesecons_microcontroller/init.lua b/mesecons_microcontroller/init.lua index 74c1366..a50d372 100644 --- a/mesecons_microcontroller/init.lua +++ b/mesecons_microcontroller/init.lua @@ -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 |