From fa1aefe425c51cd605681d9a5e1554513665380d Mon Sep 17 00:00:00 2001 From: xtex Date: Tue, 1 Aug 2023 17:51:53 +0800 Subject: [PATCH] feat: remove 3.0 base factor for music --- 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 03d7690..33ce555 100644 --- a/common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt +++ b/common/src/main/kotlin/quaedam/projection/music/MusicPlayer.kt @@ -71,7 +71,7 @@ class MusicPlayer( // play note val projections = Projector.findNearbyProjections(level, pos, MusicProjection.effect.get()) .takeIf { it.isNotEmpty() } ?: listOf(MusicProjectionEffect()) - val volume = 3.0f * projections.maxOf { it.volumeFactor } * note.volume + val volume = projections.maxOf { it.volumeFactor } * note.volume val particle = projections.any { it.particle } val instrument = level.getBlockState(pos).getValue(BlockStateProperties.NOTEBLOCK_INSTRUMENT) val pitch = if (instrument.isTunable) {