[SPIGOT-3214] Broken Book titles since 4acd0f49e07 Created: 30/Apr/17  Updated: 30/Apr/17  Resolved: 30/Apr/17

Status: Resolved
Project: Spigot
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Brokkonaut Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: Books, Items


 Description   

The new version breaks many books on our server - the client accepts title lengths of up to 32 characters and many books we have on our server have titles that are quite log. Now that Spigot limits the title to 16 characters all that books are broken.

 

If you want to check that the vanilla client accepts books up to 32 characters have a look at MCP ItemEditableBook.java:

public static boolean validBookTagContents(NBTTagCompound p_77828_0_)
{

...

String var1 = p_77828_0_.getString("title");
return var1 != null && var1.length() <= 32 ? p_77828_0_.hasKey("author", 8) : false;

...



 Comments   
Comment by md_5 [ 30/Apr/17 ]

The client can read books up to 32, so I guess I'll let this slide.

Comment by md_5 [ 30/Apr/17 ]

The largest title you can input in the client is 16: http://files.md-5.net/s/llV21lT.png

Generated at Sat Dec 13 11:55:06 UTC 2025 using Jira 10.3.13#10030013-sha1:56dd970ae30ebfeda3a697d25be1f6388b68a422.