Skip to content

Commit 94fa865

Browse files
committed
fix: apply vanilla master volume on 1.21.9+
Closes #86
1 parent 9305bd1 commit 94fa865

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/main/kotlin/ru/octol1ttle/flightassistant/impl/alert/AlertSoundInstance.kt‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ class AlertSoundInstance(val player: Player, val data: AlertData) :
4646
}
4747

4848
this.volume = this.actualVolume * FAConfig.alerts.soundVolume
49+
//? if >=1.21.9
50+
/*this.volume *= ru.octol1ttle.flightassistant.FlightAssistant.mc.options.getSoundSourceVolume(SoundSource.MASTER)*/
4951
}
5052

5153
fun setLooping(looping: Boolean, soundManager: SoundManager) {

‎src/main/kotlin/ru/octol1ttle/flightassistant/screen/waypoints/WaypointsScreen.kt‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import net.minecraft.client.gui.components.Tooltip
77
import net.minecraft.client.gui.screens.Screen
88
import net.minecraft.network.chat.CommonComponents
99
import net.minecraft.network.chat.Component
10-
import ru.octol1ttle.flightassistant.api.util.extensions.drawMiddleAlignedString
11-
import ru.octol1ttle.flightassistant.api.util.extensions.warningColor
10+
import ru.octol1ttle.flightassistant.api.util.extensions.*
1211
import ru.octol1ttle.flightassistant.impl.computer.autoflight.FlightPlanComputer
1312
import ru.octol1ttle.flightassistant.screen.FABaseScreen
1413
import ru.octol1ttle.flightassistant.screen.components.CycleTextOnlyButton

0 commit comments

Comments
 (0)