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

NbtTag serial name Typo? Maybe? #46

Closed
milosworks opened this issue Dec 18, 2024 · 7 comments
Closed

NbtTag serial name Typo? Maybe? #46

milosworks opened this issue Dec 18, 2024 · 7 comments

Comments

@milosworks
Copy link

buildSerialDescriptor("kotlinx.serialization.json.JsonElement", PolymorphicKind.SEALED) {

Shouldnt this be NbtTag instead of using kotlinx jsonelement?

@BenWoodworth
Copy link
Owner

Good catch! Yeah, it should be "net.benwoodworth.knbt.NbtTag" similar to the other serializer.

I do have it fixed in pull request #44, but that's on pause because of a new job search and holiday busyness.

I'm open to PRs if you want to contribute that fix, then it's pretty quick to push out a release. Otherwise I can later today or tomorrow when I get a chance!

@BenWoodworth BenWoodworth changed the title Typo? Maybe? NbtTag serial name Typo? Maybe? Dec 19, 2024
@BenWoodworth
Copy link
Owner

I just pushed out v0.11.6 with this fixed, so it should be available soon! Thanks for the report :)

@milosworks
Copy link
Author

I just pushed out v0.11.6 with this fixed, so it should be available soon! Thanks for the report :)

Thanks so much, sorry I couldn't PR I got busy, it wasn't critical on my end but I'm happy it's now fixed :D

@milosworks
Copy link
Author

Btw I wanted to ask in here df89582 my issue is already fixed bc it's not JsonElement and the name doesn't really matter but shouldn't it be NbtTag instead of NbtByte? or maybe I'm missing something? the name doesn't really matter anyways

@BenWoodworth
Copy link
Owner

You... are a life saver 😅

It should be NbtTag. I didn't even copy-paste this time, I just typed out the same name as the next serializer on autopilot in my haste. I'll get right on that!

@BenWoodworth
Copy link
Owner

And, done! The name might actually matter in some cases, since the serial name may be used as a key to look up serializers contextually, so should be unique. Now though, with 0.11.7 pushed out, it should be good to go 🫠

@milosworks
Copy link
Author

Thanks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants