Skip to content

Use NamespacedKeys instead of Material ordinals for ItemData serialization#7790

Merged
sovdeeth merged 2 commits into
SkriptLang:dev/featurefrom
sovdeeth:feature/fix-item-data-serialization
Apr 12, 2025
Merged

Use NamespacedKeys instead of Material ordinals for ItemData serialization#7790
sovdeeth merged 2 commits into
SkriptLang:dev/featurefrom
sovdeeth:feature/fix-item-data-serialization

Conversation

@sovdeeth
Copy link
Copy Markdown
Member

@sovdeeth sovdeeth commented Apr 9, 2025

Description

Material ordinals change between versions and cannot be relied upon for serialization.
This uses getKey to serialize and matchMaterial to deserialize.

We should recommend users upgrade to 2.11 without changing their minecraft version and run the server at least once before changing versions.


Target Minecraft Versions: any
Requirements: none
Related Issues: #7789

@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Apr 9, 2025
@sovdeeth sovdeeth requested a review from a team as a code owner April 9, 2025 17:06
@sovdeeth sovdeeth requested review from APickledWalrus and Romitou and removed request for a team April 9, 2025 17:06
@Efnilite Efnilite added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Apr 11, 2025
@sovdeeth sovdeeth merged commit d5d0589 into SkriptLang:dev/feature Apr 12, 2025
5 checks passed
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
…ation (SkriptLang#7790)

* Use namespacedkeys instead of ordinals for serialization

* Update ItemData.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants