logging for failed to move item to vault or bank
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user