From c87af7a4a4c68ea42e9770a084aaf7fbddc24e22 Mon Sep 17 00:00:00 2001 From: 2No2Name <2No2Name@web.de> Date: Fri, 22 Jul 2022 00:46:06 +0200 Subject: [PATCH] fix: display cart speed by second instead of by tick --- src/main/java/mendedminecarts/MinecartDisplayData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/mendedminecarts/MinecartDisplayData.java b/src/main/java/mendedminecarts/MinecartDisplayData.java index 56e6253..4aaab8f 100644 --- a/src/main/java/mendedminecarts/MinecartDisplayData.java +++ b/src/main/java/mendedminecarts/MinecartDisplayData.java @@ -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")); }