Obsidian icon indicating copy to clipboard operation
Obsidian copied to clipboard

De/Serialize ItemStack properly

Open Tides opened this issue 1 year ago • 0 comments

With the update to 1.21, there have been changes made to items, causing its old format to change and being a major breaking change. Some items might not even spawn in or, in the worst case, just cause clients to disconnect/server to throw an exception and shut down.

More info about the change here

We do need to talk about how to structure this as an ItemStack is practically a list of components now instead of the old structure.

These are the methods/classes that should be updated. MinecraftStream.Writing.cs:L650-L720 MinecraftStream.Reading.cs:L579-L689 ItemStack.cs

Tides avatar Sep 10 '24 16:09 Tides