logging for failed to move item to vault or bank

This commit is contained in:
2025-02-11 20:03:30 -06:00
parent d1c6d9edec
commit c3a7262a7f
+10 -2
View File
@@ -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();
i.stripCastableEnchants(); try {
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!
i.stripCastableEnchants(); try {
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);