Fixed Button-Param2-Check

This commit is contained in:
sfan5 2012-01-09 15:34:51 +01:00
parent 618a933ba1
commit 2dba4d917f

View File

@ -33,10 +33,12 @@ minetest.register_on_dignode(
end
)
minetest.register_on_placenode(function(pos, node)
if node.name == "jeija:wall_button_off" or node.name == "jeija:wall_button_on" then
if node.param2 == 4 or node.param2 == 8 then
minetest.env:remove_node(pos)
minetest.env:add_item(pos, 'node jeija:wall_button_off 1')
end
end
end)
minetest.register_on_punchnode(function(pos, node, puncher)
if node.name == "jeija:wall_button_off" then