mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-01-04 03:57:37 +01:00
Fix wielder
This commit is contained in:
parent
bf6fe237de
commit
8cc2ecb55f
@ -101,10 +101,7 @@ local function wielder_on(data, wielder_pos, wielder_node)
|
|||||||
if data.eject_drops then
|
if data.eject_drops then
|
||||||
for i, stack in ipairs(inv:get_list("main")) do
|
for i, stack in ipairs(inv:get_list("main")) do
|
||||||
if not stack:is_empty() then
|
if not stack:is_empty() then
|
||||||
local tubeitem = pipeworks.tube_item(vector_copy(wielder_pos), stack)
|
pipeworks.tube_item(wielder_pos, wielder_pos, dir, stack)
|
||||||
tubeitem:get_luaentity().start_pos = vector_copy(wielder_pos)
|
|
||||||
tubeitem:setvelocity(vector_copy(dir))
|
|
||||||
tubeitem:setacceleration(vector.new(0,0,0))
|
|
||||||
inv:set_stack("main", i, ItemStack(""))
|
inv:set_stack("main", i, ItemStack(""))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user