Browse Source

resource dupe

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
4cb0f28e57
  1. 2
      src/engine/objects/CharacterItemManager.java

2
src/engine/objects/CharacterItemManager.java

@ -1268,7 +1268,9 @@ public class CharacterItemManager {
for(Item item : purge){ for(Item item : purge){
count += item.getNumOfItems(); count += item.getNumOfItems();
this.removeItemFromInventory(item); this.removeItemFromInventory(item);
item.setOwner(null);
item.junk(); item.junk();
} }
Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner()); Item resource = new MobLoot(this.getOwner(),i.getItemBase(),count,false).promoteToItem((PlayerCharacter)this.getOwner());
this.inventory.add(resource); this.inventory.add(resource);

Loading…
Cancel
Save