13
0
geforkt von Mirrors/Paper

fix: remove #isStopping check

Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
Dieser Commit ist enthalten in:
Mariell Hoversholm 2021-06-11 20:16:11 +02:00
Ursprung 5fe78fe2b1
Commit 725ba53b4b

Datei anzeigen

@ -3,6 +3,8 @@ From: Aikar <aikar@aikar.co>
Date: Mon, 29 Feb 2016 18:48:17 -0600 Date: Mon, 29 Feb 2016 18:48:17 -0600
Subject: [PATCH] Timings v2 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 diff --git a/src/main/java/co/aikar/timings/FullServerTickHandler.java b/src/main/java/co/aikar/timings/FullServerTickHandler.java
new file mode 100644 new file mode 100644
@ -43,7 +45,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ @Override + @Override
+ public void stopTiming() { + public void stopTiming() {
+ super.stopTiming(); + super.stopTiming();
+ if (!isEnabled() || Bukkit.isStopping()) { + if (!isEnabled()) {
+ return; + return;
+ } + }
+ if (TimingHistory.timedTicks % 20 == 0) { + if (TimingHistory.timedTicks % 20 == 0) {