From c525575d376e58caee58be4d2cada04dd911de81 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Mon, 11 Nov 2024 14:54:38 +0100 Subject: [PATCH] Revert hard limit in 1.17 book size check --- .../protocols/v1_17to1_17_1/Protocol1_17To1_17_1.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/common/src/main/java/com/viaversion/viaversion/protocols/v1_17to1_17_1/Protocol1_17To1_17_1.java b/common/src/main/java/com/viaversion/viaversion/protocols/v1_17to1_17_1/Protocol1_17To1_17_1.java index f81fd74c7..2c49089b7 100644 --- a/common/src/main/java/com/viaversion/viaversion/protocols/v1_17to1_17_1/Protocol1_17To1_17_1.java +++ b/common/src/main/java/com/viaversion/viaversion/protocols/v1_17to1_17_1/Protocol1_17To1_17_1.java @@ -29,7 +29,6 @@ import com.viaversion.viaversion.api.type.types.StringType; import com.viaversion.viaversion.protocols.v1_16_4to1_17.packet.ClientboundPackets1_17; import com.viaversion.viaversion.protocols.v1_16_4to1_17.packet.ServerboundPackets1_17; import com.viaversion.viaversion.protocols.v1_17to1_17_1.packet.ClientboundPackets1_17_1; -import com.viaversion.viaversion.util.Limit; public final class Protocol1_17To1_17_1 extends AbstractProtocol { @@ -89,11 +88,13 @@ public final class Protocol1_17To1_17_1 extends AbstractProtocol pagesTag = new ListTag<>(StringTag.class); for (int i = 0; i < pages; i++) { String page = wrapper.read(PAGE_STRING_TYPE); - pagesTag.add(new StringTag(page)); + if (i < 200) { // Apply network limit as per game code + pagesTag.add(new StringTag(page)); + } } // Legacy servers don't like an empty pages list