From 949f7d1aebf4abc30732b317ac4dcc7f32b603b2 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sat, 17 Jun 2023 20:09:02 +0200 Subject: [PATCH] Fix some stuff Signed-off-by: yoyosource --- .../de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java index d268ccf6..f470a871 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java @@ -41,7 +41,7 @@ public class TPSWarpUtils { public static void setTPS(double tps) { double d = 50 - (50 / (tps / 20.0)); // nanoDOffset = Math.max(0, Math.min((long) (d * 1000000), 375000000)); - nanoDOffset = (long) (d * 1000000); + nanoDOffset = Math.max(0, (long) (d * 1000000)); if (nanoDOffset == 0) { if (bukkitTask == null) return; bukkitTask.cancel();