|
|
@ -1280,8 +1280,11 @@ public class CharacterItemManager { |
|
|
|
if (ib != null) |
|
|
|
if (ib != null) |
|
|
|
this.inventoryWeight += ib.getWeight(); |
|
|
|
this.inventoryWeight += ib.getWeight(); |
|
|
|
} else{ |
|
|
|
} else{ |
|
|
|
this.inventory.removeAll(purge); |
|
|
|
|
|
|
|
i.setNumOfItems(count); |
|
|
|
i.setNumOfItems(count); |
|
|
|
|
|
|
|
for(Item item : purge){ |
|
|
|
|
|
|
|
this.delete(item); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.inventory.removeAll(purge); |
|
|
|
this.inventory.add(i); |
|
|
|
this.inventory.add(i); |
|
|
|
} |
|
|
|
} |
|
|
|
this.updateInventory(); |
|
|
|
this.updateInventory(); |
|
|
|