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_movestones/init.lua | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'mesecons_movestones') diff --git a/mesecons_movestones/init.lua b/mesecons_movestones/init.lua index 857ddd4..5198a29 100644 --- a/mesecons_movestones/init.lua +++ b/mesecons_movestones/init.lua @@ -99,8 +99,7 @@ mesecon:register_on_signal_on(function (pos, node) end until checknode.name=="air" or checknode.name=="ignore" - or checknode.name=="default:water" - or checknode.name=="default:water_flowing" + or not(minetest.registered_nodes[checknode.name].liquidtype == "none") minetest.env:remove_node(pos) nodeupdate(pos) minetest.env:add_entity(pos, "mesecons_movestones:movestone_entity") @@ -177,8 +176,7 @@ mesecon:register_on_signal_on(function (pos, node) end until checknode.name=="air" or checknode.name=="ignore" - or checknode.name=="default:water" - or checknode.name=="default:water_flowing" + or not(minetest.registered_nodes[checknode.name].liquidtype == "none") repeat -- Check if it collides with a stopper (pull direction) collpos={x=collpos.x-direction.x, y=collpos.y-direction.y, z=collpos.z-direction.z} checknode=minetest.env:get_node(collpos) @@ -187,9 +185,7 @@ mesecon:register_on_signal_on(function (pos, node) end until checknode.name=="air" or checknode.name=="ignore" - or checknode.name=="default:water" - or checknode.name=="default:water_flowing" - + or not(minetest.registered_nodes[checknode.name].liquidtype == "none") minetest.env:remove_node(pos) nodeupdate(pos) minetest.env:add_entity(pos, "mesecons_movestones:sticky_movestone_entity") -- cgit v1.2.3