forked from minetest-mods/mesecons
Fixed Button-Param2-Check
This commit is contained in:
parent
618a933ba1
commit
2dba4d917f
@ -33,9 +33,11 @@ minetest.register_on_dignode(
|
|||||||
end
|
end
|
||||||
)
|
)
|
||||||
minetest.register_on_placenode(function(pos, node)
|
minetest.register_on_placenode(function(pos, node)
|
||||||
if node.param2 == 4 or node.param2 == 8 then
|
if node.name == "jeija:wall_button_off" or node.name == "jeija:wall_button_on" then
|
||||||
minetest.env:remove_node(pos)
|
if node.param2 == 4 or node.param2 == 8 then
|
||||||
minetest.env:add_item(pos, 'node jeija:wall_button_off 1')
|
minetest.env:remove_node(pos)
|
||||||
|
minetest.env:add_item(pos, 'node jeija:wall_button_off 1')
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
minetest.register_on_punchnode(function(pos, node, puncher)
|
minetest.register_on_punchnode(function(pos, node, puncher)
|
||||||
|
Loading…
Reference in New Issue
Block a user