|
|
@ -1282,13 +1282,9 @@ public class CharacterItemManager { |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|
i.setNumOfItems(count); |
|
|
|
i.setNumOfItems(count); |
|
|
|
for(Item item : purge){ |
|
|
|
for(Item item : purge){ |
|
|
|
this.delete(item); |
|
|
|
this.removeItemFromInventory(item); |
|
|
|
} |
|
|
|
} |
|
|
|
this.inventory.removeAll(purge); |
|
|
|
|
|
|
|
this.inventory.add(i); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.updateInventory(); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
this.inventory.add(i); |
|
|
|
this.inventory.add(i); |
|
|
|
this.itemIDtoType.put(i.getObjectUUID(), i.getObjectType().ordinal()); |
|
|
|
this.itemIDtoType.put(i.getObjectUUID(), i.getObjectType().ordinal()); |
|
|
|
|
|
|
|
|
|
|
|