Error logging addded

This commit is contained in:
2024-03-10 13:42:25 -04:00
parent 7bf5279ad3
commit 7f830a18cd
+23 -18
View File
@@ -80,24 +80,29 @@ public class ItemBase {
this.twoHanded = (rs.getInt("twoHanded") == 1);
switch (ItemTemplate.itemTemplates.get(this.getUUID()).item_type) {
case RUNE:
case SCROLL:
case WAND:
case POTION:
case CHARTER:
case DEED:
case EMPLOYMENTCONTRACT:
case BUCKET:
case REALMCHARTER:
case TREASURE:
this.isConsumable = true;
break;
case OFFERING:
this.isConsumable = true;
Boon.HandleBoonListsForItemBase(uuid);
break;
}
ItemTemplate template = ItemTemplate.itemTemplates.get(this.getUUID());
if (template == null)
Logger.error(this.getUUID() + " null template");
else
switch (ItemTemplate.itemTemplates.get(this.getUUID()).item_type) {
case RUNE:
case SCROLL:
case WAND:
case POTION:
case CHARTER:
case DEED:
case EMPLOYMENTCONTRACT:
case BUCKET:
case REALMCHARTER:
case TREASURE:
this.isConsumable = true;
break;
case OFFERING:
this.isConsumable = true;
Boon.HandleBoonListsForItemBase(uuid);
break;
}
try {
DbManager.ItemBaseQueries.LOAD_ANIMATIONS(this);