summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenplus1 <tenplus1@users.noreply.github.com>2016-04-06 22:17:29 +0100
committerEkdohibs <nathanael.courant@laposte.net>2016-05-12 23:59:16 +0200
commit322615542e570f6363c7006b90f334e9ffd722c8 (patch)
tree657d79ab0f27795ad2f3a44ccc821267f4c3256c
parent3db3a9cc32a453a58a18321f99e531725749e681 (diff)
Fix item drop when digging mv furnace
Fixed crash when digging mv furnace
-rw-r--r--technic/machines/register/common.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/technic/machines/register/common.lua b/technic/machines/register/common.lua
index ce0eee6..dfa2948 100644
--- a/technic/machines/register/common.lua
+++ b/technic/machines/register/common.lua
@@ -157,13 +157,13 @@ function technic.machine_after_dig_node(pos, oldnode, oldmetadata, player)
if oldmetadata.inventory.upgrade1 and oldmetadata.inventory.upgrade1[1] then
local stack = ItemStack(oldmetadata.inventory.upgrade1[1])
if not stack:is_empty() then
- minetest.item_drop(stack, "", pos)
+ minetest.add_item(pos, stack)
end
end
if oldmetadata.inventory.upgrade2 and oldmetadata.inventory.upgrade2[1] then
local stack = ItemStack(oldmetadata.inventory.upgrade2[1])
if not stack:is_empty() then
- minetest.item_drop(stack, "", pos)
+ minetest.add_item(pos, stack)
end
end
end