From b940ecab9c3058abb7550797673f384fc203bee1 Mon Sep 17 00:00:00 2001 From: KennyTV Date: Thu, 10 Jun 2021 08:42:52 +0200 Subject: [PATCH] Fix meta warning --- .../java/com/viaversion/viaversion/rewriter/EntityRewriter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java b/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java index 8d0b6afd9..0fd5cbb23 100644 --- a/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java +++ b/common/src/main/java/com/viaversion/viaversion/rewriter/EntityRewriter.java @@ -471,7 +471,7 @@ public abstract class EntityRewriter extends RewriterBase if (!Via.getConfig().isSuppressMetadataErrors() || Via.getManager().isDebug()) { Logger logger = Via.getPlatform().getLogger(); logger.severe("An error occurred in metadata handler " + this.getClass().getSimpleName() - + " for " + (type != null ? "untracked" : type.name()) + " entity type: " + metadata); + + " for " + (type != null ? type.name() : "untracked") + " entity type: " + metadata); logger.severe(metadataList.stream().sorted(Comparator.comparingInt(Metadata::id)) .map(Metadata::toString).collect(Collectors.joining("\n", "Full metadata: ", ""))); e.printStackTrace();