Browse Source

login crash bug

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
9c867ee281
  1. 3
      src/engine/objects/CharacterItemManager.java

3
src/engine/objects/CharacterItemManager.java

@ -1262,12 +1262,13 @@ public class CharacterItemManager { @@ -1262,12 +1262,13 @@ public class CharacterItemManager {
if(item.getItemBaseID() == i.getItemBaseID()){
if(item.getNumOfItems() + count <= Warehouse.getMaxResources().get(i.getItemBaseID())){
purge.add(item);
count += item.getNumOfItems();
}
}
}
for(Item item : purge){
count += item.getNumOfItems();
this.removeItemFromInventory(item);
item.junk();
}
Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner());
this.inventory.add(resource);

Loading…
Cancel
Save