From 69f3a16d36e46cf1167cff2a335418a201c52658 Mon Sep 17 00:00:00 2001 From: Alex Howe Date: Tue, 7 May 2024 20:41:54 +0100 Subject: [PATCH 1/4] Added feature for 1.18+ book editing packet --- data/pc/common/features.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/data/pc/common/features.json b/data/pc/common/features.json index 3b6dfc9b0..8d841c651 100644 --- a/data/pc/common/features.json +++ b/data/pc/common/features.json @@ -241,6 +241,14 @@ "description": "book editing is handled through a packet", "versions": [ "1.13", + "1.17.1" + ] + }, + { + "name": "hasNonNbtEditBookPacket", + "description": "book editing is handled through a packet", + "versions": [ + "1.18", "latest" ] }, From 444cecb194021c77b5d74b5182398757810a2e0a Mon Sep 17 00:00:00 2001 From: Alex Howe Date: Tue, 7 May 2024 21:01:41 +0100 Subject: [PATCH 2/4] Updated feature description for new book edit packet --- data/pc/common/features.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/pc/common/features.json b/data/pc/common/features.json index 8d841c651..c97a782f2 100644 --- a/data/pc/common/features.json +++ b/data/pc/common/features.json @@ -238,7 +238,7 @@ }, { "name": "hasEditBookPacket", - "description": "book editing is handled through a packet", + "description": "book editing is handled through a packet with the updated book item", "versions": [ "1.13", "1.17.1" @@ -246,7 +246,7 @@ }, { "name": "hasNonNbtEditBookPacket", - "description": "book editing is handled through a packet", + "description": "book editing is handled through a packet with the pages and title", "versions": [ "1.18", "latest" From 140fc18e5e0132670766ef794dcd00bae8e60958 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 1 Jun 2024 11:21:57 -0400 Subject: [PATCH 3/4] replace hasNonNbtEditBookPacket with editBookPacketUsesNbt --- data/pc/common/features.json | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/data/pc/common/features.json b/data/pc/common/features.json index c97a782f2..c6a3fff34 100644 --- a/data/pc/common/features.json +++ b/data/pc/common/features.json @@ -239,18 +239,12 @@ { "name": "hasEditBookPacket", "description": "book editing is handled through a packet with the updated book item", - "versions": [ - "1.13", - "1.17.1" - ] + "versions": ["1.13", "latest"] }, { - "name": "hasNonNbtEditBookPacket", + "name": "editBookPacketUsesNbt", "description": "book editing is handled through a packet with the pages and title", - "versions": [ - "1.18", - "latest" - ] + "versions": ["1.13", "1.17.1"] }, { "name": "clientUpdateBookIdWhenSign", From 8c44ead4e073021c85720928ad6c1ccb993a9ba3 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sat, 1 Jun 2024 11:28:50 -0400 Subject: [PATCH 4/4] Update features.json --- data/pc/common/features.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/pc/common/features.json b/data/pc/common/features.json index c6a3fff34..2b832891b 100644 --- a/data/pc/common/features.json +++ b/data/pc/common/features.json @@ -243,7 +243,7 @@ }, { "name": "editBookPacketUsesNbt", - "description": "book editing is handled through a packet with the pages and title", + "description": "edit_book packet sends a new book item (with its NBT containing page data) to server", "versions": ["1.13", "1.17.1"] }, {