mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 10:41:41 +01:00
fix: remove #isStopping check
Signed-off-by: Mariell Hoversholm <proximyst@proximyst.com>
This commit is contained in:
parent
5fe78fe2b1
commit
725ba53b4b
1 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@ 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
|
||||
|
@ -43,7 +45,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ @Override
|
||||
+ public void stopTiming() {
|
||||
+ super.stopTiming();
|
||||
+ if (!isEnabled() || Bukkit.isStopping()) {
|
||||
+ if (!isEnabled()) {
|
||||
+ return;
|
||||
+ }
|
||||
+ if (TimingHistory.timedTicks % 20 == 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue