Browse Source

resource merchant work

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

2
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)) {
if(this.getOwner().getName().equals("Resource Merchant") == false){
this.inventory.remove(i); this.inventory.remove(i);
this.itemIDtoType.remove(i.getObjectUUID()); this.itemIDtoType.remove(i.getObjectUUID());
}
return true; return true;
} }
} }

Loading…
Cancel
Save