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

RegistrySerializer - fix serialization issues #6865

Merged

Conversation

ShaneBeee
Copy link
Contributor

Description

This PR aims to fix some serialization issues with the RegistrySerializer:

  1. It apparently did not like using a primitive String, now using object instead.
  2. Threw massive errors when it couldn't load an invalid object from registry
    (one example was removing a data pack, that held a custom enchantment which was saved to a var)

Added some tests as well.


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

@sovdeeth sovdeeth added bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. 2.9 Targeting a 2.9.X version release labels Jul 4, 2024
src/test/skript/tests/misc/registry.sk Outdated Show resolved Hide resolved
@APickledWalrus APickledWalrus merged commit 8a5ceae into SkriptLang:dev/feature Jul 10, 2024
5 checks passed
@ShaneBeee ShaneBeee deleted the fix/registry-serializer branch July 10, 2024 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.9 Targeting a 2.9.X version release bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants