From 5583c8c007459813a9510af6e0463b23c49983c9 Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Wed, 23 Dec 2020 14:52:56 -0800 Subject: [PATCH] fix book page limit length (#4932) --- Spigot-Server-Patches/Book-Size-Limits.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Spigot-Server-Patches/Book-Size-Limits.patch b/Spigot-Server-Patches/Book-Size-Limits.patch index 23d66f6720..803e79634d 100644 --- a/Spigot-Server-Patches/Book-Size-Limits.patch +++ b/Spigot-Server-Patches/Book-Size-Limits.patch @@ -41,7 +41,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + ItemStack testStack = packetplayinbedit.getBook(); + if (!server.isPrimaryThread() && !testStack.isEmpty() && testStack.getTag() != null) { + NBTTagList pageList = testStack.getTag().getList("pages", 8); -+ if (pageList.size() > 50) { ++ if (pageList.size() > 100) { + PlayerConnection.LOGGER.warn(this.player.getName() + " tried to send a book with too many pages"); + minecraftServer.scheduleOnMain(() -> this.disconnect("Book too large!")); + return;