From 0a4dab93d62789549dfd568e4195f8d9876302e1 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Mon, 24 Apr 2023 23:07:26 -0400 Subject: [PATCH] chip mc moment --- .../land/chipmunk/chipmunkbot/plugins/CommandCore.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java b/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java index a6e035e..49c1397 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java +++ b/src/main/java/land/chipmunk/chipmunkbot/plugins/CommandCore.java @@ -219,9 +219,11 @@ public class CommandCore extends SessionAdapter { currentBlockRelative = null; ready = false; - refillTimer.cancel(); - refillTimer.purge(); - refillTimer = null; + if (refillTimer != null) { + refillTimer.cancel(); + refillTimer.purge(); + refillTimer = null; + } } public static class Listener {