diff options
author | Anthony Zhang <azhang9@gmail.com> | 2012-11-27 19:34:54 -0500 |
---|---|---|
committer | Anthony Zhang <azhang9@gmail.com> | 2012-11-27 19:34:54 -0500 |
commit | aaddd9e74dbcae2211bd44bf544de08c69bce8e2 (patch) | |
tree | 15747efadcede492962eb09cd3f1b59f639310d3 /mesecons_pistons/pistons_up.lua | |
parent | 618fd31f43be1e6f598053f06f8db2235f2eb4c3 (diff) |
Fix a rare piston pushing bug and make piston updating faster.
Diffstat (limited to 'mesecons_pistons/pistons_up.lua')
-rw-r--r-- | mesecons_pistons/pistons_up.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mesecons_pistons/pistons_up.lua b/mesecons_pistons/pistons_up.lua index d04bdee..cbee277 100644 --- a/mesecons_pistons/pistons_up.lua +++ b/mesecons_pistons/pistons_up.lua @@ -121,14 +121,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 |