feat: remove 3.0 base factor for music

This commit is contained in:
xtex 2023-08-01 17:51:53 +08:00
parent dca1482526
commit fa1aefe425
Signed by: xtex
GPG Key ID: B918086ED8045B91

View File

@ -71,7 +71,7 @@ class MusicPlayer(
// play note // play note
val projections = Projector.findNearbyProjections(level, pos, MusicProjection.effect.get()) val projections = Projector.findNearbyProjections(level, pos, MusicProjection.effect.get())
.takeIf { it.isNotEmpty() } ?: listOf(MusicProjectionEffect()) .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 particle = projections.any { it.particle }
val instrument = level.getBlockState(pos).getValue(BlockStateProperties.NOTEBLOCK_INSTRUMENT) val instrument = level.getBlockState(pos).getValue(BlockStateProperties.NOTEBLOCK_INSTRUMENT)
val pitch = if (instrument.isTunable) { val pitch = if (instrument.isTunable) {