summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-08-14 22:10:39 +0200
committerNovatux <nathanael.courant@laposte.net>2014-08-14 22:10:39 +0200
commit8cc2ecb55f48c367d452de1053cb0fdefca00ec8 (patch)
tree2cf4bc671b0c53f8686385e1b85d345da220be9b
parentbf6fe237def901d71e7a4e78b9d66731129be0d6 (diff)
downloadpipeworks-8cc2ecb55f48c367d452de1053cb0fdefca00ec8.tar
pipeworks-8cc2ecb55f48c367d452de1053cb0fdefca00ec8.tar.gz
pipeworks-8cc2ecb55f48c367d452de1053cb0fdefca00ec8.tar.bz2
pipeworks-8cc2ecb55f48c367d452de1053cb0fdefca00ec8.tar.xz
pipeworks-8cc2ecb55f48c367d452de1053cb0fdefca00ec8.zip
Fix wielder
-rw-r--r--wielder.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/wielder.lua b/wielder.lua
index a57471f..4bc9a4f 100644
--- a/wielder.lua
+++ b/wielder.lua
@@ -101,10 +101,7 @@ local function wielder_on(data, wielder_pos, wielder_node)
if data.eject_drops then
for i, stack in ipairs(inv:get_list("main")) do
if not stack:is_empty() then
- local tubeitem = pipeworks.tube_item(vector_copy(wielder_pos), stack)
- tubeitem:get_luaentity().start_pos = vector_copy(wielder_pos)
- tubeitem:setvelocity(vector_copy(dir))
- tubeitem:setacceleration(vector.new(0,0,0))
+ pipeworks.tube_item(wielder_pos, wielder_pos, dir, stack)
inv:set_stack("main", i, ItemStack(""))
end
end