Commit Graph

7 Commits

Author SHA1 Message Date
Camotoy 2fa7585db3 Switch to Cloudburst NBT only 2024-04-26 21:44:59 -04:00
Camotoy b29e0d9d10
Move MCProtocolLib to dev - package ID change 2024-04-24 16:39:35 -04:00
Camotoy aed7f1bed7
Update the item parts 2024-04-24 16:26:57 -04:00
Camotoy 909139326d
Keep chugging away 2024-04-24 16:26:57 -04:00
Camotoy c1edf20734
Here's the idea so far 2024-04-24 16:26:57 -04:00
Camotoy 099e968bde
Initial, incomplete pass at Java 1.20.5 2024-04-24 16:26:57 -04:00
Amberichu 811aba3339
Validate written_book tags and fix writable book losing changes (#3894)
* Validate NBT tags of written_book like Java edition

* Update page count and character count limits

The maximum number of characters allowed in Java's book edit screen is
1024 for each page and 16 for the title. However, the packet itself has
a limit of 8192 * 3 bytes for each page and 128 * 3 bytes for the title.

* Fix writable book losing changes when signing

Bedrock sends a 3 action InventoryTransactionPacket after the player
changes a page. This causes Geyser to send a ServerboundEditBookPacket
with an outdated NBT. The Java responses with a
ClientboundContainerSetSlotPacket that overwrites any NBT Changes from
BedrockBookEditTranslator.

* Add a comment for the title length check

* Specify color in Component.translatable
2023-06-18 20:02:27 -04:00
Renamed from core/src/main/java/org/geysermc/geyser/item/type/ReadableBookItem.java (Browse further)