diff options
Diffstat (limited to 'src/main/kotlin/moe/nea/firmament/util/IdentifierSerializer.kt')
-rw-r--r-- | src/main/kotlin/moe/nea/firmament/util/IdentifierSerializer.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/kotlin/moe/nea/firmament/util/IdentifierSerializer.kt b/src/main/kotlin/moe/nea/firmament/util/IdentifierSerializer.kt index 3c1aa52..c88d9ee 100644 --- a/src/main/kotlin/moe/nea/firmament/util/IdentifierSerializer.kt +++ b/src/main/kotlin/moe/nea/firmament/util/IdentifierSerializer.kt @@ -19,7 +19,7 @@ object IdentifierSerializer : KSerializer<Identifier> { get() = SerialDescriptor("Identifier", delegateSerializer.descriptor) override fun deserialize(decoder: Decoder): Identifier { - return Identifier(decoder.decodeSerializableValue(delegateSerializer)) + return Identifier.of(decoder.decodeSerializableValue(delegateSerializer)) } override fun serialize(encoder: Encoder, value: Identifier) { |