When updating at least a snapshot world to the new version, data of books is lost. It doesnt matter the place where is the book (hotbar, itemframe, lectern), the book turns into a blank book.
How to reproduce:
Compose a manuscript within Snapshot 24w13a
Upgrade the world to the latest snapshot
Attempt to peruse the tome
/data get entity @s SelectedItem
Linked issues
is duplicated by 3
Attachments
Comments 5
@Tiul luckily I didn't have much written and I remember perfectly what I wrote. Thank you for the help 🙂
Code analysis:
In 24w14a Filterables Codec was changed from using the field name text to using raw. To adjust for this ItemStackComponentizationFix was adjusted as well. However ItemStackComponentizationFix is only run when upgrading format from 24w08a to 24w09a, so this fix won't be applied to any worlds created between 24w09a and 24w13a. To fix this a separate datafixer needs to be added instead. The fix in ItemStackComponentizationFix should probably also be reverted as it may have the same effect as this bug on worlds from pre 24w09a upgraded to 24w09a through 24w13a (untested)
I have created a simple fabric mod to fix this issue: MC-270325
As this only affects upgrading from snapshots within this series, we have marked this as Won't Fix - although we prefer to upgrade where possible, we do not strictly guarantee data migration across snapshot versions. Upgrading from 1.20.4 should work as expected. 🙂
So, will this bug still occur if I upgrade from, say, 24w12a to 1.20.5 (when released)? In version 24w12a my books are fine, but I'm scared the 1.20.5 pre-release update will damage my books. I will admit, the world was created in release 1.8, so the whole thing the worlds created from 24w09a-24w13a shouldn't be an issue, as the world is older than that. None the less, if somebody could please fix this, it would be much obliged. Or, I suppose, at bare minimum, confirm that I won't be losing my hand written and very old books when the 1.20.5 update rolls around if I'm upgrading from 24w12a. Thanks.
steps to reproduce
Compose a manuscript within Snapshot 24w13a
Upgrade the world to the latest snapshot
Attempt to peruse the tome
Noticed: Your wonderful tale or whatever creative masterpiece you've penned has vanished from the book, akin to invisible ink rekindling memories. Attempting to inspect the book won't initiate a user interface for reading its contents. Upon executing the command, you'll notice the absence of components for saving the text.
Hoped for: Your magnificent story or any creative work within the book ought not to fade away.
Notes: Upgrading from version 1.20.4 does not result in the deletion of text from the book.