From b0848d3e78899f3d046a80549b788f2df34479b3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 7 Nov 2020 11:04:54 +0100 Subject: [PATCH] Fix bugs --- SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java b/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java index b805393..9b36d29 100644 --- a/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java +++ b/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java @@ -70,7 +70,7 @@ public class TPSWatcher { } public double getTPSUnlimited() { - return getTPS(TPSType.ONE_SECOND); + return getTPSUnlimited(TPSType.ONE_SECOND); } public double getTPS(TPSType tpsType) { @@ -124,7 +124,7 @@ public class TPSWatcher { } private double round(double d) { - return Math.min(Math.round(d * 10) / 10.0, 20); + return Math.max(Math.round(d * 10) / 10.0, 20.0); } private double roundUnlimited(double d) {