fix: remove #isStopping check
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
This commit is contained in:
parent
d8d7c8c8aa
commit
9c2a18af92
|
@ -3,10 +3,12 @@ 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
|
||||||
index 0000000000000000000000000000000000000000..dfaa266ff53e43ad48dc5a5a5657fe70600f539a
|
index 0000000000000000000000000000000000000000..43b85ce3a6c27a2f92c67d62bee7484c2652b72a
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/src/main/java/co/aikar/timings/FullServerTickHandler.java
|
+++ b/src/main/java/co/aikar/timings/FullServerTickHandler.java
|
||||||
@@ -0,0 +1,85 @@
|
@@ -0,0 +1,85 @@
|
||||||
|
@ -43,7 +45,7 @@ index 0000000000000000000000000000000000000000..dfaa266ff53e43ad48dc5a5a5657fe70
|
||||||
+ @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) {
|
||||||
|
|
Loading…
Reference in New Issue