diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-12-15 14:41:03 -0500 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-12-15 14:41:03 -0500 |
commit | a4a74413c0037b4729e4c728f2b32e91395b7e60 (patch) | |
tree | 114635b698f8777394e1e67f6ba6210666dd3227 /node_breaker.lua | |
parent | 6785ba39f45893d8f98f9ee5c82b66cdc2959c39 (diff) |
tube_item has to be global. confined it to pipeworks.{} table.
Diffstat (limited to 'node_breaker.lua')
-rw-r--r-- | node_breaker.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_breaker.lua b/node_breaker.lua index 8f4accb..593799f 100644 --- a/node_breaker.lua +++ b/node_breaker.lua @@ -162,7 +162,7 @@ local function break_node (pos, facedir) --handle node drops local drops = minetest.get_node_drops(node.name, "default:pick_mese") for _, dropped_item in ipairs(drops) do - local item1 = tube_item({x=pos.x, y=pos.y, z=pos.z}, dropped_item) + local item1 = pipeworks.tube_item({x=pos.x, y=pos.y, z=pos.z}, dropped_item) item1:get_luaentity().start_pos = {x=pos.x, y=pos.y, z=pos.z} item1:setvelocity(vel) item1:setacceleration({x=0, y=0, z=0}) |