From 1d2d9ce4d85389b1b9d8ec6ce4a16e2b729e2f03 Mon Sep 17 00:00:00 2001 From: xtex Date: Sun, 30 Jul 2023 10:02:12 +0800 Subject: [PATCH] fix: distance attenuation --- common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt b/common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt index 3e6c48e..04a6f55 100644 --- a/common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt +++ b/common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt @@ -94,7 +94,7 @@ class MusicPlayer(val seed: Long, val level: Level, val pos: BlockPos, val start volume, pitch, RandomSource.create(level.random.nextLong()), - false, 0, SoundInstance.Attenuation.NONE, + false, 0, SoundInstance.Attenuation.LINEAR, pos.x.toDouble() + 0.5, pos.y.toDouble() + 0.5, pos.z.toDouble() + 0.5,