From f942093e4f8d778d3192c27096fc5ecf53b9ab95 Mon Sep 17 00:00:00 2001 From: DBotThePony Date: Sun, 31 Dec 2023 22:23:16 +0700 Subject: [PATCH] Don't embed condition json by default --- src/main/kotlin/ru/dbotthepony/mc/otm/data/Codec2Serializer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/data/Codec2Serializer.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/data/Codec2Serializer.kt index 10d9550bd..df3588fb5 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/data/Codec2Serializer.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/data/Codec2Serializer.kt @@ -10,7 +10,7 @@ import ru.dbotthepony.mc.otm.core.fromJsonStrict import ru.dbotthepony.mc.otm.core.set import ru.dbotthepony.mc.otm.core.toJsonStrict -class Codec2Serializer(val codec: Codec, val embed: Boolean = true) : Serializer { +class Codec2Serializer(val codec: Codec, val embed: Boolean = false) : Serializer { override fun serialize(data: JsonObject, value: T, context: JsonSerializationContext) { if (embed) { val result = codec.toJsonStrict(value, data)