diff options
author | Jat <jinan15@hotmail.com> | 2012-08-30 14:20:18 +0200 |
---|---|---|
committer | Jat <jinan15@hotmail.com> | 2012-08-30 14:20:18 +0200 |
commit | b7553145b088f595d3af187a0515a70aaaadc46b (patch) | |
tree | 12c9e2ae746e601fb19df6786d770605b9478f4b /mesecons_pistons/pistons_up.lua | |
parent | bcd6634811d311b2e64307ccd866f20c0b60e23f (diff) | |
download | mesecons-b7553145b088f595d3af187a0515a70aaaadc46b.tar mesecons-b7553145b088f595d3af187a0515a70aaaadc46b.tar.gz mesecons-b7553145b088f595d3af187a0515a70aaaadc46b.tar.bz2 mesecons-b7553145b088f595d3af187a0515a70aaaadc46b.tar.xz mesecons-b7553145b088f595d3af187a0515a70aaaadc46b.zip |
Actuator ignored liquid (all)
Diffstat (limited to 'mesecons_pistons/pistons_up.lua')
-rw-r--r-- | mesecons_pistons/pistons_up.lua | 10 |
1 files changed, 2 insertions, 8 deletions
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) |