diff --git a/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java b/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java index e900586..cb92fcf 100644 --- a/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java +++ b/SpigotCore_Main/src/de/steamwar/core/TPSWatcher.java @@ -46,20 +46,20 @@ public class TPSWatcher { return getTPS(TPSType.ONE_SECOND); } - public static double getTPSLimited(double limit) { - return getTPSLimited(TPSType.ONE_SECOND, limit); + public static double getTPS(double limit) { + return getTPS(TPSType.ONE_SECOND, limit); } public static double getTPSUnlimited() { return getTPSUnlimited(TPSType.ONE_SECOND); } - public static double getTPSLimited(TPSType tpsType, double limit) { - return Math.min(getTPSUnlimited(tpsType), limit); + public static double getTPS(TPSType tpsType) { + return getTPS(tpsType, TICK_DEFAULT); } - public static double getTPS(TPSType tpsType) { - return Math.min(getTPSUnlimited(tpsType), TICK_DEFAULT); + public static double getTPS(TPSType tpsType, double limit) { + return Math.min(getTPSUnlimited(tpsType), limit); } public static double getTPSUnlimited(TPSType tpsType) {