From 4940ed66c181c7dfeef7261613fcd1fd71101a3c Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Thu, 16 Sep 2021 18:17:44 +0200 Subject: [PATCH] Don't warn on superfluous bytes Should be looked into, but not now:tm: --- .../protocols/protocol1_18to1_17_1/types/Chunk1_18Type.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/types/Chunk1_18Type.java b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/types/Chunk1_18Type.java index d6c3df15e..5b54b09ed 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/types/Chunk1_18Type.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/protocol1_18to1_17_1/types/Chunk1_18Type.java @@ -58,7 +58,7 @@ public final class Chunk1_18Type extends Type { sections[i] = sectionType.read(sectionsBuf); } } finally { - if (sectionsBuf.readableBytes() > 0) { + if (sectionsBuf.readableBytes() > 0 && Via.getManager().isDebug()) { Via.getPlatform().getLogger().warning("Found " + sectionsBuf.readableBytes() + " more bytes than expected while reading the chunk: " + chunkX + "/" + chunkZ); } sectionsBuf.release();