Skip to content

Commit

Permalink
fix: don't auto-reset thrust lock when DaBR thrust is active
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <[email protected]>
  • Loading branch information
Octol1ttle committed Feb 20, 2025
1 parent 1fbc4e6 commit d7757f7
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ class DaBRThrustComputer(computers: ComputerView) : Computer(computers), ThrustS

override fun subscribeToEvents() {
ThrustEvents.MODIFY_THRUST_INPUT.register({
computers.thrust.setTarget((computers.thrust.current + FATickCounter.timePassed / 3 * sign(it)).toFloat().coerceIn(-1.0f..1.0f))
if (it != 0.0) {
computers.thrust.setTarget((computers.thrust.current + FATickCounter.timePassed / 3 * sign(it)).toFloat().coerceIn(-1.0f..1.0f))
}
if (!computers.thrust.disabledOrFaulted()) {
return@register computers.thrust.current.toDouble()
}
Expand Down

0 comments on commit d7757f7

Please sign in to comment.