From b1b9a7e9945fe642f21f756092c6bd664ae3d012 Mon Sep 17 00:00:00 2001 From: Auke Kok Date: Fri, 1 Apr 2016 22:18:44 -0700 Subject: [PATCH] Don't use item_drop(, nil,) --- autocrafter.lua | 2 +- sorting_tubes.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/autocrafter.lua b/autocrafter.lua index 6d00a7c..648a610 100644 --- a/autocrafter.lua +++ b/autocrafter.lua @@ -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) diff --git a/sorting_tubes.lua b/sorting_tubes.lua index 795291b..6d432ae 100644 --- a/sorting_tubes.lua +++ b/sorting_tubes.lua @@ -6,7 +6,7 @@ if pipeworks.enable_mese_tube then local inv = meta:get_inventory() for i = 1, 6 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