From c22276f3f90ebf7d8b30095d83e51d94a1571752 Mon Sep 17 00:00:00 2001 From: Noah <70314622+NoahTheNerd@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:16:29 +0200 Subject: [PATCH] Add clear func to queue --- .../kotlin/live/ixnoah/tapactions/commands/CommandQueue.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/kotlin/live/ixnoah/tapactions/commands/CommandQueue.kt b/src/main/kotlin/live/ixnoah/tapactions/commands/CommandQueue.kt index f075824..d0c8d29 100644 --- a/src/main/kotlin/live/ixnoah/tapactions/commands/CommandQueue.kt +++ b/src/main/kotlin/live/ixnoah/tapactions/commands/CommandQueue.kt @@ -15,4 +15,8 @@ object CommandQueue { Minecraft.getMinecraft().thePlayer.sendChatMessage("/" + command) } + + fun clearQueue() { + queue.clear() + } }