Browse Source

logging for failed to move item to vault or bank

lakebane-ai
FatBoy-DOTC 2 weeks ago
parent
commit
c3a7262a7f
  1. 8
      src/engine/objects/CharacterItemManager.java

8
src/engine/objects/CharacterItemManager.java

@ -1056,7 +1056,11 @@ public class CharacterItemManager {
// add to Bank // add to Bank
this.bank.add(i); this.bank.add(i);
i.addToCache(); i.addToCache();
try {
i.stripCastableEnchants(); i.stripCastableEnchants();
}catch(Exception ignored){
Logger.error("FAILED TO STRIP CASTABLE ENCHANTS: Move Item To Bank");
}
calculateWeights(); calculateWeights();
@ -1197,7 +1201,11 @@ public class CharacterItemManager {
} else } else
return false; // NPC's dont have vaults! return false; // NPC's dont have vaults!
try {
i.stripCastableEnchants(); i.stripCastableEnchants();
}catch(Exception ignored){
Logger.error("FAILED TO STRIP CASTABLE ENCHANTS: Move Item To Vault");
}
// remove it from other lists: // remove it from other lists:
this.remItemFromLists(i, slot); this.remItemFromLists(i, slot);

Loading…
Cancel
Save