Remove from equip before changing slot.
This commit is contained in:
1 parent
3500bf0ede
commit
c6f451bce1
2 files changed
+4
-4
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user