mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-24 02:55:50 +01:00
Apply page network limit when converting book pages in 1.17->1.17.1 (#4256)
This commit is contained in:
parent
8e4da81022
commit
ddbe8ef0fb
@ -92,7 +92,9 @@ public final class Protocol1_17To1_17_1 extends AbstractProtocol<ClientboundPack
|
||||
ListTag<StringTag> 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
|
||||
|
Loading…
Reference in New Issue
Block a user