From ac5fbdd7f4dbcadc98de2f057ac5c58fdbc97b14 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 9 Nov 2023 17:58:10 +1000 Subject: [PATCH] Allow null mapped entity name --- .../viabackwards/api/entities/storage/EntityData.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/viaversion/viabackwards/api/entities/storage/EntityData.java b/common/src/main/java/com/viaversion/viabackwards/api/entities/storage/EntityData.java index 22ccc8e6..58296637 100644 --- a/common/src/main/java/com/viaversion/viabackwards/api/entities/storage/EntityData.java +++ b/common/src/main/java/com/viaversion/viabackwards/api/entities/storage/EntityData.java @@ -81,11 +81,11 @@ public class EntityData { return null; } - String name = protocol.getMappingData().mappedEntityName(key); + final String name = protocol.getMappingData().mappedEntityName(key); if (name == null) { - ViaBackwards.getPlatform().getLogger().warning("Entity name for " + key + " not found in protocol " + protocol.getClass().getSimpleName()); - name = key; + return null; } + if (componentType == ComponentType.JSON) { return ChatRewriter.legacyTextToJson(name); } else if (componentType == ComponentType.TAG) {