diff options
author | Anthony <azhang9@gmail.com> | 2012-08-30 09:43:56 -0700 |
---|---|---|
committer | Anthony <azhang9@gmail.com> | 2012-08-30 09:43:56 -0700 |
commit | 5cc18d8fbd4b09e8c6075ead262e98fd8a663b35 (patch) | |
tree | 12c9e2ae746e601fb19df6786d770605b9478f4b /mesecons_pistons/init.lua | |
parent | bcd6634811d311b2e64307ccd866f20c0b60e23f (diff) | |
parent | b7553145b088f595d3af187a0515a70aaaadc46b (diff) | |
download | mesecons-5cc18d8fbd4b09e8c6075ead262e98fd8a663b35.tar mesecons-5cc18d8fbd4b09e8c6075ead262e98fd8a663b35.tar.gz mesecons-5cc18d8fbd4b09e8c6075ead262e98fd8a663b35.tar.bz2 mesecons-5cc18d8fbd4b09e8c6075ead262e98fd8a663b35.tar.xz mesecons-5cc18d8fbd4b09e8c6075ead262e98fd8a663b35.zip |
Merge pull request #42 from Jat15/master
Modified pistons, movestone, mvps for all liquid
Diffstat (limited to 'mesecons_pistons/init.lua')
-rw-r--r-- | mesecons_pistons/init.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/mesecons_pistons/init.lua b/mesecons_pistons/init.lua index 1bf7034..3e3f75e 100644 --- a/mesecons_pistons/init.lua +++ b/mesecons_pistons/init.lua @@ -135,10 +135,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 @@ -203,10 +200,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:set_node(pos, checknode) minetest.env:remove_node(checkpos) |