or maybe another fixies idk

This commit is contained in:
Chayapak 2024-10-22 16:06:15 +07:00
parent 8983dd2800
commit 12e4087f26
2 changed files with 2 additions and 1 deletions

View file

@ -52,6 +52,7 @@ public class GrepLogCommand extends Command {
if (thread == null) throw new CommandException(Component.text("There is no query process running")); if (thread == null) throw new CommandException(Component.text("There is no query process running"));
bot.grepLog.running = false; bot.grepLog.running = false;
bot.grepLog.pattern = null;
thread.interrupt(); // ? should i interrupt it this way? thread.interrupt(); // ? should i interrupt it this way?

View file

@ -28,7 +28,7 @@ import java.util.zip.GZIPInputStream;
public class GrepLogPlugin { public class GrepLogPlugin {
private final Bot bot; private final Bot bot;
private Pattern pattern; public Pattern pattern;
private int count = 0; private int count = 0;