Browse Source

resource merchant work

lakebane-master
FatBoy-DOTC 9 months ago
parent
commit
669db7f021
  1. 6
      src/engine/objects/CharacterItemManager.java

6
src/engine/objects/CharacterItemManager.java

@ -1218,8 +1218,10 @@ public class CharacterItemManager {
if (this.doesCharOwnThisItem(i.getObjectUUID()) == false) if (this.doesCharOwnThisItem(i.getObjectUUID()) == false)
return false; return false;
if (this.inventory.contains(i)) { if (this.inventory.contains(i)) {
this.inventory.remove(i); if(this.getOwner().getName().equals("Resource Merchant") == false){
this.itemIDtoType.remove(i.getObjectUUID()); this.inventory.remove(i);
this.itemIDtoType.remove(i.getObjectUUID());
}
return true; return true;
} }
} }

Loading…
Cancel
Save