From bb0bc090df2b5eb2ed2846b0459808980dd6576f Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 30 Nov 2024 19:07:35 +0700 Subject: [PATCH] fix: small fix for runTracked throwing when the bot is not logged in --- build-number.txt | 2 +- src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build-number.txt b/build-number.txt index 5f798c1..e74e6cd 100644 --- a/build-number.txt +++ b/build-number.txt @@ -1 +1 @@ -1136 \ No newline at end of file +1137 \ No newline at end of file diff --git a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java index eea3829..d679f31 100644 --- a/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java +++ b/src/main/java/me/chayapak1/chomens_bot/plugins/CorePlugin.java @@ -208,6 +208,8 @@ public class CorePlugin extends PositionPlugin.Listener { // thanks chipmunk for this new tellraw method public CompletableFuture runTracked (String command) { + if (!ready || command.length() > 32767) return null; + if (!bot.options.useCore) return null; if (bot.options.useCorePlaceBlock) {