summaryrefslogtreecommitdiff
path: root/jeija/button.lua
diff options
context:
space:
mode:
authorAnthony Zhang <azhang9@gmail.com>2012-01-26 16:33:11 -0500
committerAnthony Zhang <azhang9@gmail.com>2012-01-26 16:33:11 -0500
commitcbe6b4f7bef4ae930afafe3f8cc667a256b3c2e6 (patch)
tree112610e8bb0018990d7cb3faad292d055130ed2b /jeija/button.lua
parent688f65947f8bbaa2b260238f050602d4d40815e8 (diff)
downloadmesecons-cbe6b4f7bef4ae930afafe3f8cc667a256b3c2e6.tar
mesecons-cbe6b4f7bef4ae930afafe3f8cc667a256b3c2e6.tar.gz
mesecons-cbe6b4f7bef4ae930afafe3f8cc667a256b3c2e6.tar.bz2
mesecons-cbe6b4f7bef4ae930afafe3f8cc667a256b3c2e6.tar.xz
mesecons-cbe6b4f7bef4ae930afafe3f8cc667a256b3c2e6.zip
Update param2 as per kahrl's suggestions.
Diffstat (limited to 'jeija/button.lua')
-rw-r--r--jeija/button.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/jeija/button.lua b/jeija/button.lua
index d77a5b8..1d210f9 100644
--- a/jeija/button.lua
+++ b/jeija/button.lua
@@ -36,16 +36,16 @@ minetest.register_on_punchnode(function(pos, node, puncher)
if node.name == "jeija:wall_button_off" then
minetest.env:add_node(pos, {name="jeija:wall_button_on",param2=node.param2})
local rules_string=""
- if node.param2 == 32 then
+ if node.param2 == 5 then
rules_string="button_z+"
end
- if node.param2 == 2 then
+ if node.param2 == 3 then
rules_string="button_x+"
end
- if node.param2 == 16 then
+ if node.param2 == 4 then
rules_string="button_z-"
end
- if node.param2 == 1 then
+ if node.param2 == 2 then
rules_string="button_x-"
end
mesecon:receptor_on(pos, rules_string)
@@ -59,16 +59,16 @@ minetest.register_abm({
minetest.env:add_node(pos, {name="jeija:wall_button_off",param2=node.param2})
local rules_string=""
- if node.param2 == 32 then
+ if node.param2 == 5 then
rules_string="button_z+"
end
- if node.param2 == 2 then
+ if node.param2 == 3 then
rules_string="button_x+"
end
- if node.param2 == 16 then
+ if node.param2 == 4 then
rules_string="button_z-"
end
- if node.param2 == 1 then
+ if node.param2 == 2 then
rules_string="button_x-"
end
mesecon:receptor_off(pos, rules_string)