From 671539b8139e2d765afe9bafb4e1433b6e24cbf5 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Sun, 21 Mar 2021 14:24:58 +0100 Subject: [PATCH] Fix TPSUtils --- src/de/steamwar/spectatesystem/util/TPSUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/spectatesystem/util/TPSUtils.java b/src/de/steamwar/spectatesystem/util/TPSUtils.java index 8ba2ac1..627bfbc 100644 --- a/src/de/steamwar/spectatesystem/util/TPSUtils.java +++ b/src/de/steamwar/spectatesystem/util/TPSUtils.java @@ -17,7 +17,7 @@ public class TPSUtils { public static void init() { Bukkit.getScheduler().runTaskTimer(SpectateSystem.get(), () -> nanoOffset += nanoDOffset, 1, 1); - SystemUtils.a = () -> nanoOffset; + SystemUtils.a = () -> System.nanoTime() + nanoOffset; } public static void setTPS(double tps) {