Browse Source

Logging missing base names

combat-2
MagicBot 9 months ago
parent
commit
744b508fea
  1. 2
      src/engine/objects/ItemTemplate.java

2
src/engine/objects/ItemTemplate.java

@ -156,7 +156,7 @@ public class ItemTemplate { @@ -156,7 +156,7 @@ public class ItemTemplate {
item_passive_defense_mod = ((Double) jsonObject.get("item_passive_defense_mod")).floatValue();
item_base_name = (String) jsonObject.get("item_base_name");
if (item_base_name == null)
if (item_base_name.isEmpty())
Logger.error(this.obj_name + " missing base name");
item_dsc = (String) jsonObject.get("item_dsc");

Loading…
Cancel
Save