From 4f31b38332a8a8d0afea608301b0b35fc881ec80 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 16 Jun 2022 22:02:49 +0200 Subject: [PATCH] Fix TPSWarpUtils 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 a1a5b656..fff2ebe6 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TPSWarpUtils.java @@ -49,7 +49,7 @@ public class TPSWarpUtils { if (bukkitTask == null) return; bukkitTask.cancel(); bukkitTask = null; - } else { + } else if (bukkitTask != null) { bukkitTask = Bukkit.getScheduler().runTaskTimer(BauSystem.getInstance(), () -> nanoOffset += nanoDOffset, 1, 1); } }