Skip to content

Commit

Permalink
reversing speed bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
EternalBlueFlame committed Sep 26, 2024
1 parent 9952286 commit b4d428a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/train/common/api/Locomotive.java
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ public String getDestinationGUI() {
return destination;
}

public float transportTopSpeed(){return forwardPressed?getSpec().getMaxSpeed():transportTopSpeedReverse();}

private double convertSpeed(double speed) {
//System.out.println("X "+motionX +" Z "+motionZ);
if (ConfigHandler.REAL_TRAIN_SPEED) {
Expand Down

0 comments on commit b4d428a

Please sign in to comment.