Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate ArmorStand meta to using entity tag #11107

Merged
merged 1 commit into from
Aug 16, 2024
Merged

Conversation

electronicboy
Copy link
Member

@electronicboy electronicboy commented Jul 18, 2024

Our handling of this class causes some headaches due to ItemMeta being lossy, we can double patch this by properly storing the data we care about, there is still some stuff to be addressed, i.e. we really should ensure that the entity tag is stored to the tag properly

TODO: actually, we should just serialise the entity tag directly as b64


Download the paperclip jar for this pull request: paper-11107.zip

@electronicboy electronicboy added the build-pr-jar Enables a workflow to build Paperclip jars on the pull request. label Jul 18, 2024
@lynxplay lynxplay linked an issue Jul 18, 2024 that may be closed by this pull request
@electronicboy electronicboy marked this pull request as ready for review July 20, 2024 17:34
@electronicboy electronicboy requested a review from a team as a code owner July 20, 2024 17:34
@Sikatsu
Copy link

Sikatsu commented Aug 15, 2024

Hey, is there any update on this pull request?
We're running into an issue where the player is being kicked, which seems related to this.
https://pastebin.com/NpU9tkEL

@TehBrian
Copy link
Contributor

TehBrian commented Aug 15, 2024

We're running into an issue where the player is being kicked, which seems related to this. https://pastebin.com/NpU9tkEL

Yup, it is.

This was referenced Aug 15, 2024
Copy link
Member

@Machine-Maker Machine-Maker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested, deserialized stacks are valid

Our handling of this class causes some headaches due to ItemMeta being
lossy, we can double patch this by properly storing the data we
care about, there is still some stuff to be addressed, i.e.
we really should ensure that the entity tag is stored to the tag properly
@lynxplay lynxplay merged commit 52ae4ad into master Aug 16, 2024
5 checks passed
@lynxplay lynxplay deleted the fixes/armor-meta branch August 16, 2024 22:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-pr-jar Enables a workflow to build Paperclip jars on the pull request.
Projects
Status: Merged
Development

Successfully merging this pull request may close these issues.

ArmorStand with meta deserialized by bukkit not saveable.
6 participants