Browse Source

resource dupe

lakebane-master
FatBoy-DOTC 10 months ago
parent
commit
8c6637663d
  1. 6
      src/engine/objects/CharacterItemManager.java

6
src/engine/objects/CharacterItemManager.java

@ -1267,9 +1267,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.setOwner(null);
item.junk(); junk(item);
} }
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());

Loading…
Cancel
Save