Browse Source

Error logging addded

combat-2
MagicBot 8 months ago
parent
commit
7f830a18cd
  1. 5
      src/engine/objects/ItemBase.java

5
src/engine/objects/ItemBase.java

@ -80,6 +80,11 @@ public class ItemBase {
this.twoHanded = (rs.getInt("twoHanded") == 1); 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) { switch (ItemTemplate.itemTemplates.get(this.getUUID()).item_type) {
case RUNE: case RUNE:
case SCROLL: case SCROLL:

Loading…
Cancel
Save