fix: distance attenuation

This commit is contained in:
xtex 2023-07-30 10:02:12 +08:00
parent bbef6cb342
commit 1d2d9ce4d8
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -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,