From f2b60ca6b009066aa15b0a4b0b68e3ab7a90f4bc Mon Sep 17 00:00:00 2001 From: xtex Date: Thu, 10 Aug 2023 22:11:25 +0800 Subject: [PATCH] fix(i18n): json syntax --- .../src/main/kotlin/quaedam/projection/misc/SoundProjection.kt | 2 ++ common/src/main/resources/assets/quaedam/lang/zh_cn.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projection/misc/SoundProjection.kt b/common/src/main/kotlin/quaedam/projection/misc/SoundProjection.kt index 3575b71..1295ee6 100644 --- a/common/src/main/kotlin/quaedam/projection/misc/SoundProjection.kt +++ b/common/src/main/kotlin/quaedam/projection/misc/SoundProjection.kt @@ -58,12 +58,14 @@ data class SoundProjectionEffect(var rate: Int = 60, var volume: Float = 1.0f) : override fun toNbt(tag: CompoundTag) { tag.putInt(TAG_RATE, rate) + println("save $volume") tag.putFloat(TAG_VOLUME, volume) } override fun fromNbt(tag: CompoundTag, trusted: Boolean) { rate = tag.getInt(TAG_RATE) volume = tag.getFloat(TAG_VOLUME) + println("load $volume") if (!trusted) { rate = min(rate, maxRate) } diff --git a/common/src/main/resources/assets/quaedam/lang/zh_cn.json b/common/src/main/resources/assets/quaedam/lang/zh_cn.json index a5119a6..15389a5 100644 --- a/common/src/main/resources/assets/quaedam/lang/zh_cn.json +++ b/common/src/main/resources/assets/quaedam/lang/zh_cn.json @@ -44,5 +44,5 @@ "advancements.quaedam.swarm_projection.title": "太多人了", "advancements.quaedam.swarm_projection.description": "制作人群投影", "advancements.quaedam.kill_projected_person.title": "走开", - "advancements.quaedam.kill_projected_person.description": "杀死一个投影人\n\n你为什么要这样做呢?\n这是不好的。", + "advancements.quaedam.kill_projected_person.description": "杀死一个投影人\n\n你为什么要这样做呢?\n这是不好的。" }