From b7553145b088f595d3af187a0515a70aaaadc46b Mon Sep 17 00:00:00 2001 From: Jat Date: Thu, 30 Aug 2012 14:20:18 +0200 Subject: Actuator ignored liquid (all) --- mesecons_pistons/pistons_up.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'mesecons_pistons/pistons_up.lua') diff --git a/mesecons_pistons/pistons_up.lua b/mesecons_pistons/pistons_up.lua index b3f3261..9002068 100644 --- a/mesecons_pistons/pistons_up.lua +++ b/mesecons_pistons/pistons_up.lua @@ -129,10 +129,7 @@ mesecon:register_on_signal_on(function(pos, node) --check for column end if checknode.name == "air" or checknode.name == "ignore" - or checknode.name == "default:water_source" - or checknode.name == "default:water_flowing" - or checknode.name == "default:lava_source" - or checknode.name == "default:lava_flowing" then + or not(minetest.registered_nodes[checknode.name].liquidtype == "none") then break end @@ -197,10 +194,7 @@ mesecon:register_on_signal_off(function(pos, node) checknode = minetest.env:get_node(checkpos) if checknode.name ~= "air" and checknode.name ~= "ignore" - and checknode.name ~= "default:water_source" - and checknode.name ~= "default:water_flowing" - and checknode.name ~= "default:lava_source" - and checknode.name ~= "default:lava_flowing" + and minetest.registered_nodes[checknode.name].liquidtype == "none" and not mesecon:is_mvps_stopper(checknode.name) then minetest.env:remove_node(checkpos) mesecon:updatenode(checkpos) -- cgit v1.2.3