Browse Source

Logging null templates

combat-2
MagicBot 9 months ago
parent
commit
1306ea3c5c
  1. 3
      src/engine/objects/ItemBase.java

3
src/engine/objects/ItemBase.java

@ -181,6 +181,9 @@ public class ItemBase { @@ -181,6 +181,9 @@ public class ItemBase {
ItemTemplate template = ItemTemplate.itemTemplates.get(itemBase.uuid);
if (template == null)
Logger.error("Null template for: " + itemBase.uuid);
else
_IDsByNames.put(template.item_base_name.toLowerCase().replace(" ", "_"), itemBase.uuid);
}

Loading…
Cancel
Save