From 744b508fea86554306d26669cd7cc4efa7692c27 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Wed, 28 Feb 2024 17:31:59 -0500 Subject: [PATCH] Logging missing base names --- src/engine/objects/ItemTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/objects/ItemTemplate.java b/src/engine/objects/ItemTemplate.java index 36ea3b8b..2e9d0bdb 100644 --- a/src/engine/objects/ItemTemplate.java +++ b/src/engine/objects/ItemTemplate.java @@ -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");