summaryrefslogtreecommitdiff
path: root/tubes.lua
diff options
context:
space:
mode:
authorVanessaE <vanessaezekowitz@gmail.com>2013-06-02 14:38:42 -0700
committerVanessaE <vanessaezekowitz@gmail.com>2013-06-02 14:38:42 -0700
commit698c84666cacae42158b23c6b93e8a9d3113a497 (patch)
treef4635fa8d0b6ac484635b9bc2046b6852e0918e2 /tubes.lua
parentc4717fbba60ea6111bfb5c25664d48322a15cab2 (diff)
parentd373742752780f0b8fb38340572938d1b3b986e4 (diff)
downloadpipeworks-698c84666cacae42158b23c6b93e8a9d3113a497.tar
pipeworks-698c84666cacae42158b23c6b93e8a9d3113a497.tar.gz
pipeworks-698c84666cacae42158b23c6b93e8a9d3113a497.tar.bz2
pipeworks-698c84666cacae42158b23c6b93e8a9d3113a497.tar.xz
pipeworks-698c84666cacae42158b23c6b93e8a9d3113a497.zip
Merge pull request #35 from Novatux/sand
Fix bug with sand tubes
Diffstat (limited to 'tubes.lua')
-rw-r--r--tubes.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/tubes.lua b/tubes.lua
index c7f0a4f..735a85a 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -474,10 +474,7 @@ sand_inv_texture="pipeworks_sand_tube_inv.png"
register_tube("pipeworks:sand_tube","Sand pneumatic tube segment",sand_plain_textures,sand_noctr_textures,sand_end_textures,
sand_short_texture,sand_inv_texture,
- {groups={sand_tube=1},
- tube={can_go=function(pos,node,velocity,stack)
- return meseadjlist
- end}})
+ {groups={sand_tube=1}})
minetest.register_abm({nodenames={"group:sand_tube"},interval=1,chance=1,
action=function(pos, node, active_object_count, active_object_count_wider)
@@ -486,7 +483,7 @@ minetest.register_abm({nodenames={"group:sand_tube"},interval=1,chance=1,
if object:get_luaentity().itemstring ~= "" then
local titem=tube_item(pos,object:get_luaentity().itemstring)
titem:get_luaentity().start_pos = {x=pos.x,y=pos.y-1,z=pos.z}
- titem:setvelocity({x=0,y=1,z=0})
+ titem:setvelocity({x=0.01,y=1,z=-0.01})
titem:setacceleration({x=0, y=0, z=0})
end
object:get_luaentity().itemstring = ""