projects
/
zefram
/
minetest
/
pipeworks.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf6fe23
)
Fix wielder
author
Novatux
<nathanael.courant@laposte.net>
Thu, 14 Aug 2014 20:10:39 +0000
(22:10 +0200)
committer
Novatux
<nathanael.courant@laposte.net>
Thu, 14 Aug 2014 20:10:39 +0000
(22:10 +0200)
wielder.lua
patch
|
blob
|
history
diff --git
a/wielder.lua
b/wielder.lua
index a57471fefe503dfb7b378f3c8dc28080e25cc9d3..4bc9a4f3490af572311fd8d034920dcb261c53e9 100644
(file)
--- 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