From df348817714b501b3bdd346716db2d061308780c Mon Sep 17 00:00:00 2001 From: Marc Baloup Date: Sun, 8 Jan 2023 00:13:14 +0100 Subject: [PATCH] =?UTF-8?q?AutoUpdatedBossBar:=20don=E2=80=99t=20throw=20e?= =?UTF-8?q?xception=20when=20cancelling=20twice?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/fr/pandacube/lib/paper/util/AutoUpdatedBossBar.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/AutoUpdatedBossBar.java b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/AutoUpdatedBossBar.java index 9922b59..0afdffe 100644 --- a/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/AutoUpdatedBossBar.java +++ b/pandalib-paper/src/main/java/fr/pandacube/lib/paper/util/AutoUpdatedBossBar.java @@ -141,7 +141,7 @@ public class AutoUpdatedBossBar implements Listener { public synchronized void cancel() { if (!scheduled) - throw new IllegalStateException("Can't cancel a not scheduled bossbar update"); + return; scheduled = false; if (timer != null) { timer.cancel();