fix: remove #isStopping check

Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
This commit is contained in:
Mariell Hoversholm 2021-06-11 20:16:11 +02:00
parent d8d7c8c8aa
commit 9c2a18af92
No known key found for this signature in database
GPG key ID: 7E8663CA3C537F64

View file

@ -3,10 +3,12 @@ From: Aikar <aikar@aikar.co>
Date: Mon, 29 Feb 2016 18:48:17 -0600
Subject: [PATCH] Timings v2
TODO: Add #isStopping to FullServerTickHandler#stopTiming in patch 191
expose isRunning
diff --git a/src/main/java/co/aikar/timings/FullServerTickHandler.java b/src/main/java/co/aikar/timings/FullServerTickHandler.java
new file mode 100644
index 0000000000000000000000000000000000000000..dfaa266ff53e43ad48dc5a5a5657fe70600f539a
index 0000000000000000000000000000000000000000..43b85ce3a6c27a2f92c67d62bee7484c2652b72a
--- /dev/null
+++ b/src/main/java/co/aikar/timings/FullServerTickHandler.java
@@ -0,0 +1,85 @@
@ -43,7 +45,7 @@ index 0000000000000000000000000000000000000000..dfaa266ff53e43ad48dc5a5a5657fe70
+ @Override
+ public void stopTiming() {
+ super.stopTiming();
+ if (!isEnabled() || Bukkit.isStopping()) {
+ if (!isEnabled()) {
+ return;
+ }
+ if (TimingHistory.timedTicks % 20 == 0) {