From 1886fe6b1a82747e39715457fd4c7d031bf749c2 Mon Sep 17 00:00:00 2001 From: stujones11 Date: Mon, 14 Apr 2014 19:28:23 +0100 Subject: [PATCH] Fix armor wear level being fully restored on item drop --- 3d_armor/armor.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3d_armor/armor.lua b/3d_armor/armor.lua index 0f53a2c..5e9f98d 100644 --- a/3d_armor/armor.lua +++ b/3d_armor/armor.lua @@ -413,7 +413,7 @@ if ARMOR_DROP == true or ARMOR_DESTROY == true then end) else for _,stack in ipairs(drop) do - local obj = minetest.add_item(pos, stack:get_name()) + local obj = minetest.add_item(pos, stack) if obj then local x = math.random(1, 5) if math.random(1,2) == 1 then