fix(i18n): json syntax
This commit is contained in:
parent
a68b68a0e3
commit
f2b60ca6b0
@ -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)
|
||||
}
|
||||
|
@ -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这是不好的。"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user