Modified movestone pistons mvps for all liquid

This commit is contained in:
Jat
2012-08-29 02:51:57 +02:00
parent bcd6634811
commit e10bff62f0
5 changed files with 22 additions and 34 deletions

View File

@ -99,8 +99,8 @@ 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 string.find(checknode.name, "_source")
or string.find(checknode.name, "_flowing")
minetest.env:remove_node(pos)
nodeupdate(pos)
minetest.env:add_entity(pos, "mesecons_movestones:movestone_entity")
@ -177,8 +177,8 @@ 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 string.find(checknode.name, "_source")
or string.find(checknode.name, "_flowing")
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,8 +187,8 @@ 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 string.find(checknode.name, "_source")
or string.find(checknode.name, "_flowing")
minetest.env:remove_node(pos)
nodeupdate(pos)