summaryrefslogtreecommitdiff
path: root/mesecons_movestones
diff options
context:
space:
mode:
authorAnthony <azhang9@gmail.com>2012-08-30 09:43:56 -0700
committerAnthony <azhang9@gmail.com>2012-08-30 09:43:56 -0700
commit5cc18d8fbd4b09e8c6075ead262e98fd8a663b35 (patch)
tree12c9e2ae746e601fb19df6786d770605b9478f4b /mesecons_movestones
parentbcd6634811d311b2e64307ccd866f20c0b60e23f (diff)
parentb7553145b088f595d3af187a0515a70aaaadc46b (diff)
downloadmesecons-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_movestones')
-rw-r--r--mesecons_movestones/init.lua10
1 files changed, 3 insertions, 7 deletions
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")