Error logging addded

This commit is contained in:
2024-03-10 13:42:25 -04:00
parent 7bf5279ad3
commit 7f830a18cd
+5
View File
@@ -80,6 +80,11 @@ public class ItemBase {
this.twoHanded = (rs.getInt("twoHanded") == 1);
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: