Skip to content

Commit

Permalink
Fix auto thrust status not displaying when SPD > 30 BPS
Browse files Browse the repository at this point in the history
Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
  • Loading branch information
Octol1ttle committed Aug 14, 2023
1 parent 4c2dea7 commit 3af275d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 2 additions & 1 deletion src/main/java/net/torocraft/flighthud/AutoFlightManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3af275d

Please sign in to comment.