Skip to content

Commit fc38628

Browse files
committed
woops
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
1 parent 4d6e97e commit fc38628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/safety/VoidProximityComputer.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import ru.octol1ttle.flightassistant.api.computer.Computer
1313
import ru.octol1ttle.flightassistant.api.computer.ComputerView
1414
import ru.octol1ttle.flightassistant.api.util.extensions.bottomY
1515
import ru.octol1ttle.flightassistant.config.FAConfig
16-
import ru.octol1ttle.flightassistant.impl.computer.autoflight.base.ThrustComputer
1716

1817
class VoidProximityComputer(computers: ComputerView) : Computer(computers), PitchLimiter, FlightController {
1918
var status: Status = Status.ABOVE_GROUND
@@ -57,7 +56,8 @@ class VoidProximityComputer(computers: ComputerView) : Computer(computers), Pitc
5756
if (FAConfig.safety.voidAutoPitch && status <= Status.APPROACHING_DAMAGE_ALTITUDE) {
5857
return ControlInput(
5958
computers.thrust.getOptimumClimbPitch(), ControlInput.Priority.HIGH, Component.translatable("mode.flightassistant.vertical.void_escape"),
60-
active = status == Status.REACHED_DAMAGE_ALTITUDE && computers.thrust.current > ThrustComputer.TOGA_THRESHOLD && !computers.thrust.noThrustSource)
59+
active = status == Status.REACHED_DAMAGE_ALTITUDE && computers.thrust.current == 1.0f && !computers.thrust.noThrustSource
60+
)
6161
}
6262

6363
return null

0 commit comments

Comments
 (0)