diff --git a/SpigotCore_Main/src/de/steamwar/core/CrashDetector.java b/SpigotCore_Main/src/de/steamwar/core/CrashDetector.java index be02e4f..76cd8a8 100644 --- a/SpigotCore_Main/src/de/steamwar/core/CrashDetector.java +++ b/SpigotCore_Main/src/de/steamwar/core/CrashDetector.java @@ -50,7 +50,7 @@ public class CrashDetector { private void run() { while (run) { long curTime = System.currentTimeMillis(); - if(curTime > lastTick.get() + TIMEOUT) { + if(curTime - TIMEOUT > lastTick.get()) { SWException.log(Bukkit.getServer().getVersion() + " server hung for " + (curTime - lastTick.get()) + "ms, ", Arrays.stream(mainThread.getStackTrace()).map(StackTraceElement::toString).collect(Collectors.joining("\n"))); lastTick.set(curTime); }