fix: small fix for runTracked throwing when the bot is not logged in

This commit is contained in:
Chayapak 2024-11-30 19:07:35 +07:00
parent 36a138becc
commit bb0bc090df
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1 @@
1136
1137

View file

@ -208,6 +208,8 @@ public class CorePlugin extends PositionPlugin.Listener {
// thanks chipmunk for this new tellraw method
public CompletableFuture<Component> runTracked (String command) {
if (!ready || command.length() > 32767) return null;
if (!bot.options.useCore) return null;
if (bot.options.useCorePlaceBlock) {