Skip to content

Commit 8b85955

Browse files
committed
do not prevent flight directors usage in unsafe conditions
Signed-off-by: Octol1ttle <[email protected]>
1 parent 8452c47 commit 8b85955

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/kotlin/ru/octol1ttle/flightassistant/impl/computer/autoflight/AutoFlightComputer.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,9 @@ class AutoFlightComputer(computers: ComputerBus) : Computer(computers), FlightCo
8181
}
8282

8383
override fun tick() {
84-
if (computers.protections.protectionsLost || !computers.data.isCurrentChunkLoaded) {
85-
reset()
84+
if (computers.protections.protectionsLost || !computers.chunk.isCurrentLoaded) {
85+
setAutoThrust(false, alert = true)
86+
setAutoPilot(false, alert = true)
8687
return
8788
}
8889

0 commit comments

Comments
 (0)