Skip to content

Commit

Permalink
Fix NbtTag serial name
Browse files Browse the repository at this point in the history
Was `net.benwoodworth.knbt.NbtByte`, but should be `...NbtTag`

Fixes #46
  • Loading branch information
BenWoodworth committed Dec 19, 2024
1 parent 892b9a9 commit f894564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commonMain/kotlin/NbtTagSerializers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import kotlinx.serialization.encoding.Encoder
internal object NbtTagSerializer : KSerializer<NbtTag> {
@OptIn(ExperimentalSerializationApi::class, InternalSerializationApi::class)
override val descriptor: SerialDescriptor =
buildSerialDescriptor("net.benwoodworth.knbt.NbtByte", PolymorphicKind.SEALED) {
buildSerialDescriptor("net.benwoodworth.knbt.NbtTag", PolymorphicKind.SEALED) {
// Resolve cyclic dependency in descriptors by late binding
element("NbtByteSerializer", defer { NbtByteSerializer.descriptor })
element("NbtShortSerializer", defer { NbtShortSerializer.descriptor })
Expand Down

0 comments on commit f894564

Please sign in to comment.