Piston: don't allow breaking nodes with the unconnected piston.
This commit is contained in:
parent
63e0d6e261
commit
22f77237bd
@ -630,9 +630,12 @@ minetest.register_node("mech:piston_base_extended", {
|
||||
minetest.remove_node(npos)
|
||||
end
|
||||
node.name = "mech:piston_base_sticky"
|
||||
else
|
||||
elseif nnode.name == "mech:piston_top" then
|
||||
minetest.remove_node(npos)
|
||||
node.name = "mech:piston_base"
|
||||
else
|
||||
-- wall exploit otherwise
|
||||
return
|
||||
end
|
||||
minetest.swap_node(pos, node)
|
||||
minetest.sound_play("piston_untrigger", {pos = pos})
|
||||
|
Loading…
x
Reference in New Issue
Block a user