1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-06-29 14:50:41 +02:00

Don't use item_drop(, nil,)

This commit is contained in:
Auke Kok
2016-04-01 22:18:44 -07:00
parent e30364b2dd
commit b1b9a7e994
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ local function upgrade_autocrafter(pos, meta)
if not recipe then return end
for idx, stack in ipairs(recipe) do
if not stack:is_empty() then
minetest.item_drop(stack, nil, pos)
minetest.add_item(pos, stack)
stack:set_count(1)
stack:set_wear(0)
inv:set_stack("recipe", idx, stack)