summaryrefslogtreecommitdiff
path: root/mesecons_pistons/pistons_down.lua
diff options
context:
space:
mode:
Diffstat (limited to 'mesecons_pistons/pistons_down.lua')
-rw-r--r--mesecons_pistons/pistons_down.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/mesecons_pistons/pistons_down.lua b/mesecons_pistons/pistons_down.lua
index 701f247..fb16c6f 100644
--- a/mesecons_pistons/pistons_down.lua
+++ b/mesecons_pistons/pistons_down.lua
@@ -133,14 +133,13 @@ mesecon:register_on_signal_on(function(pos, node)
while true do
local checknode = minetest.env:get_node(checkpos)
- --check for collision with stopper
- if mesecon:is_mvps_stopper(checknode.name) then
+ --check for collision with stopper or bounds
+ if mesecon:is_mvps_stopper(checknode.name) or checknode.name == "ignore" then
return
end
--check for column end
if checknode.name == "air"
- or checknode.name == "ignore"
or not(minetest.registered_nodes[checknode.name].liquidtype == "none") then
break
end