diff --git a/3d_armor/api.lua b/3d_armor/api.lua index 065f1f9..e113313 100644 --- a/3d_armor/api.lua +++ b/3d_armor/api.lua @@ -694,6 +694,9 @@ armor.equip = function(self, player, itemstack) index = i end end + if not index then -- armor inventory is full with other armor elements + return itemstack + end local stack = itemstack:take_item() armor_inv:set_stack("armor", index, stack) self:run_callbacks("on_equip", player, index, stack)