Remove from equip before changing slot.

This commit is contained in:
2024-03-09 09:09:17 -05:00
parent 3500bf0ede
commit c6f451bce1
2 changed files with 4 additions and 4 deletions
@@ -58,8 +58,10 @@ public class TransferItemFromEquipToInventoryHandler extends AbstractClientMsgHa
if (!item.validForEquip(origin, player, itemManager))
return true;
if (item.containerType == Enum.ItemContainerType.EQUIPPED)
if (item.containerType == Enum.ItemContainerType.EQUIPPED) {
itemManager.equipped.remove(item.equipSlot);
itemManager.moveItemToInventory(item);
}
int ItemType = item.getObjectType().ordinal();
int ItemID = item.getObjectUUID();