From 3af275d27b761e09a9f1a20afd0c6391c89e8cb8 Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Mon, 14 Aug 2023 11:39:03 +0500 Subject: [PATCH] Fix auto thrust status not displaying when SPD > 30 BPS Signed-off-by: Octol1ttle --- gradle.properties | 2 +- src/main/java/net/torocraft/flighthud/AutoFlightManager.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 861aa88a..6dbf354f 100644 --- a/gradle.properties +++ b/gradle.properties @@ -14,6 +14,6 @@ loader_version=0.14.7 fabric_version=0.83.0+1.20.1 immediatelyfast_version=1.1.14+1.20.1 # Mod Properties -mod_version=1.20.1-fabric-6 +mod_version=1.20.1-fabric-7 maven_group=net.torocraft archives_base_name=flighthud diff --git a/src/main/java/net/torocraft/flighthud/AutoFlightManager.java b/src/main/java/net/torocraft/flighthud/AutoFlightManager.java index f184aa95..a8a4441a 100644 --- a/src/main/java/net/torocraft/flighthud/AutoFlightManager.java +++ b/src/main/java/net/torocraft/flighthud/AutoFlightManager.java @@ -49,7 +49,8 @@ public static void update(MinecraftClient mc, FlightComputer computer) { boolean approachingDestination = distanceToTarget != null && distanceToTarget < Math.max(40, computer.velocityPerSecond.horizontalLength()); if (computer.speed > 30) thrustSet = true; - else if (autoThrustEnabled && usableFireworkHand != null) { + + if (autoThrustEnabled && usableFireworkHand != null) { if (!thrustLocked && gpwsLampColor == CONFIG.color && computer.velocityPerSecond.horizontalLength() > 0.01 && computer.pitch > (autoPilotEnabled ? 0 : 10) && !approachingDestination) { if (thrustSet && (computer.speed < 28 || computer.velocityPerSecond.y < -8)) { mc.interactionManager.interactItem(mc.player, usableFireworkHand);