3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-09-17 01:23:43 +02:00

Don't warn on superfluous bytes

Should be looked into, but not now™️
Dieser Commit ist enthalten in:
Nassim Jahnke 2021-09-16 18:17:44 +02:00
Ursprung 73093c0ff2
Commit 4940ed66c1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 6BE3B555EBC5982B

Datei anzeigen

@ -58,7 +58,7 @@ public final class Chunk1_18Type extends Type<Chunk> {
sections[i] = sectionType.read(sectionsBuf); sections[i] = sectionType.read(sectionsBuf);
} }
} finally { } 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); Via.getPlatform().getLogger().warning("Found " + sectionsBuf.readableBytes() + " more bytes than expected while reading the chunk: " + chunkX + "/" + chunkZ);
} }
sectionsBuf.release(); sectionsBuf.release();