From 9c2a18af9212249c195c3884ee6b3e1b5f6345cc Mon Sep 17 00:00:00 2001 From: Mariell Hoversholm Date: Fri, 11 Jun 2021 20:16:11 +0200 Subject: [PATCH] fix: remove #isStopping check Signed-off-by: Mariell Hoversholm --- patches/api/0005-Timings-v2.patch | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/patches/api/0005-Timings-v2.patch b/patches/api/0005-Timings-v2.patch index ec3f6cb55f..9d4a3c6e40 100644 --- a/patches/api/0005-Timings-v2.patch +++ b/patches/api/0005-Timings-v2.patch @@ -3,10 +3,12 @@ From: Aikar 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) {