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

Shulkers loaded from bukkit yml have no nbt on contents #10666

Closed
ghost opened this issue May 5, 2024 · 7 comments
Closed

Shulkers loaded from bukkit yml have no nbt on contents #10666

ghost opened this issue May 5, 2024 · 7 comments
Labels
resolution: awaiting response Additional information is required from the issue reporter type: bug Something doesn't work as it was intended to. version: 1.20.6 Game version 1.20.6

Comments

@ghost
Copy link

ghost commented May 5, 2024

Expected behavior

If you have an item with NBT within a shulker serialized into yaml, after deserialization the item should have nbt?

Observed/Actual behavior

All items in the shulker are stripped of nbt (yikes)

Steps/models to reproduce

Serialize itemstack to yml

Plugin and Datapack List

N/A

Paper version

This server is running Paper version git-Paper-"7ae2c67" (MC: 1.20.6) (Implementing API version 1.20.6-R0.1-SNAPSHOT) (Git: 7ae2c67)
You are running the latest version
Previous version: git-Paper-"0db72ac" (MC: 1.20.6)

Other

No response

@ghost ghost added status: needs triage type: bug Something doesn't work as it was intended to. labels May 5, 2024
@papermc-sniffer papermc-sniffer bot added the version: 1.20.6 Game version 1.20.6 label May 5, 2024
@ghost
Copy link
Author

ghost commented May 5, 2024

IMO remove/hard deprecate itemstack yaml serialization entirely, its very dangerous.

@lynxplay
Copy link
Contributor

lynxplay commented May 5, 2024

Yea, we have been thinking about it for a while.
I don't think there is much saving we can do for you on any of these issues.

@ghost
Copy link
Author

ghost commented May 5, 2024

Yea, we have been thinking about it for a while. I don't think there is much saving we can do for you on any of these issues.

Don't worry, luckily this was caught in testing, I plan to migrate entirely away from yaml, however, I worry for others.

@Machine-Maker
Copy link
Member

Machine-Maker commented May 5, 2024

@ThrowerWay can you clarify what you mean by "an item with NBT"? I tested this by putting 2 stacks in an anvil and renaming them, then putting them in a shulker. after serializing to yaml and back, they still had the custom names. Did you mean actually "custom" nbt, like in the custom_data component?

Some exact reproduction steps would be good, cause I can't seem to reproduce this.

@kashike kashike added resolution: awaiting response Additional information is required from the issue reporter and removed status: needs triage labels May 5, 2024
@ghost
Copy link
Author

ghost commented May 5, 2024

@ThrowerWay can you clarify what you mean by "an item with NBT"? I tested this by putting 2 stacks in an anvil and renaming them, then putting them in a shulker. after serializing to yaml and back, they still had the custom names. Did you mean actually "custom" nbt, like in the custom_data component?

Some exact reproduction steps would be good, cause I can't seem to reproduce this.

try upgrading from 1.20.4, by custom nbt i mean, lore, display name, enchants, persistant data container etc.

@Machine-Maker
Copy link
Member

Can you send some itemstacks serialized into yaml in 1.20.4 so I can test upgrading them?

@lynxplay
Copy link
Contributor

Closing this as it has been without activity for 3 weeks.

@lynxplay lynxplay closed this as not planned Won't fix, can't repro, duplicate, stale May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution: awaiting response Additional information is required from the issue reporter type: bug Something doesn't work as it was intended to. version: 1.20.6 Game version 1.20.6
Projects
Status: Done
Development

No branches or pull requests

3 participants