From 6bb8ae1dfc3a5069f05d6c7b959e8bb01420b28d Mon Sep 17 00:00:00 2001 From: KennyTV Date: Mon, 29 Jun 2020 18:28:40 +0200 Subject: [PATCH] Fix json entity names --- .../nl/matsv/viabackwards/api/rewriters/EntityRewriterBase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/nl/matsv/viabackwards/api/rewriters/EntityRewriterBase.java b/core/src/main/java/nl/matsv/viabackwards/api/rewriters/EntityRewriterBase.java index 33618c1a..2c58600d 100644 --- a/core/src/main/java/nl/matsv/viabackwards/api/rewriters/EntityRewriterBase.java +++ b/core/src/main/java/nl/matsv/viabackwards/api/rewriters/EntityRewriterBase.java @@ -193,7 +193,7 @@ public abstract class EntityRewriterBase extends Re if (data != null) { EntityData entityData = getEntityData(type); if (entityData != null && entityData.getMobName() != null - && (data.getValue() == null || ((String) data.getValue()).isEmpty()) + && (data.getValue() == null || data.getValue().toString().isEmpty()) && data.getMetaType().getTypeID() == displayNameMetaType.getTypeID()) { data.setValue(entityData.getMobName()); }