Skip to content
Success

Changes

Summary

  1. SPIGOT-7804: Fix written book serialization (details)
Commit 62e3b73a49c524ff4facf82bf50078285099a676 by md_5
SPIGOT-7804: Fix written book serialization

* Account for null/missing values when deserializing the 'resolved' and
  'generation' fields.
* Serialize the book pages as JSON strings.
* Avoid redundant conversion from strings to components to JSON and back to
  components during deserialization.
  Add CraftChatMessage.fromJSONOrString that accepts a maxLength argument
  and remove the no longer used fromJSONOrStringToJSON, fromStringToJSON,
  and fromJSONComponent helper methods.
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/inventory/CraftMetaBookSigned.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/inventory/SerializableMeta.java
The file was modifiedsrc/main/java/org/bukkit/craftbukkit/util/CraftChatMessage.java