mirror of
https://github.com/mt-mods/pipeworks.git
synced 2025-01-12 02:50:37 +01:00
Don't use item_drop(, nil,)
This commit is contained in:
parent
e30364b2dd
commit
b1b9a7e994
@ -223,7 +223,7 @@ local function upgrade_autocrafter(pos, meta)
|
|||||||
if not recipe then return end
|
if not recipe then return end
|
||||||
for idx, stack in ipairs(recipe) do
|
for idx, stack in ipairs(recipe) do
|
||||||
if not stack:is_empty() then
|
if not stack:is_empty() then
|
||||||
minetest.item_drop(stack, nil, pos)
|
minetest.add_item(pos, stack)
|
||||||
stack:set_count(1)
|
stack:set_count(1)
|
||||||
stack:set_wear(0)
|
stack:set_wear(0)
|
||||||
inv:set_stack("recipe", idx, stack)
|
inv:set_stack("recipe", idx, stack)
|
||||||
|
@ -6,7 +6,7 @@ if pipeworks.enable_mese_tube then
|
|||||||
local inv = meta:get_inventory()
|
local inv = meta:get_inventory()
|
||||||
for i = 1, 6 do
|
for i = 1, 6 do
|
||||||
for _, stack in ipairs(inv:get_list("line"..i)) do
|
for _, stack in ipairs(inv:get_list("line"..i)) do
|
||||||
minetest.item_drop(stack, nil, pos)
|
minetest.add_item(pos, stack)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user