fix: remove debug log

This commit is contained in:
xtex 2023-08-10 22:22:40 +08:00
parent f2b60ca6b0
commit f794f9848b
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -58,14 +58,12 @@ data class SoundProjectionEffect(var rate: Int = 60, var volume: Float = 1.0f) :
override fun toNbt(tag: CompoundTag) { override fun toNbt(tag: CompoundTag) {
tag.putInt(TAG_RATE, rate) tag.putInt(TAG_RATE, rate)
println("save $volume")
tag.putFloat(TAG_VOLUME, volume) tag.putFloat(TAG_VOLUME, volume)
} }
override fun fromNbt(tag: CompoundTag, trusted: Boolean) { override fun fromNbt(tag: CompoundTag, trusted: Boolean) {
rate = tag.getInt(TAG_RATE) rate = tag.getInt(TAG_RATE)
volume = tag.getFloat(TAG_VOLUME) volume = tag.getFloat(TAG_VOLUME)
println("load $volume")
if (!trusted) { if (!trusted) {
rate = min(rate, maxRate) rate = min(rate, maxRate)
} }