Skip to content

Commit

Permalink
fix: display cart speed by second instead of by tick
Browse files Browse the repository at this point in the history
  • Loading branch information
2No2Name committed Jul 21, 2022
1 parent 9287a76 commit c87af7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mendedminecarts/MinecartDisplayData.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public Text getDisplaySpeedText() {
if (this.entity().hasPassengers()) {
speed *= 0.75;
}
speed = Math.min(speed, CartHelper.getMaxSpeed(this.entity()));
speed = Math.min(speed, 20d * CartHelper.getMaxSpeed(this.entity()));
return new TranslatableText("mendedminecarts.speed").append(": ").append(String.format(getDoubleFormatString(), speed)).append(new TranslatableText("mendedminecarts.blocks_per_second"));
}

Expand Down

0 comments on commit c87af7a

Please sign in to comment.