Create inventory if not present in mcl_armor.equip

This commit is contained in:
Lizzy Fleckenstein 2021-04-21 13:28:22 +02:00
parent dccb71e2fb
commit 74a3b2654f
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ function mcl_armor.equip(itemstack, obj, swap)
end
local element = mcl_armor.elements[def._mcl_armor_element or ""]
local inv = mcl_util.get_inventory(obj)
local inv = mcl_util.get_inventory(obj, true)
if element and inv then
local old_stack = inv:get_stack("armor", element.index)