refactor: attempt to make the bot more thread-safe (specifically the core)

This commit is contained in:
ChomeNS
2025-03-27 18:21:16 +07:00
parent 1e6421a17c
commit 517e685c8d
4 changed files with 31 additions and 36 deletions

View File

@@ -53,7 +53,7 @@ public class ChatPlugin extends Bot.Listener {
public final List<Component> chatTypes = new ArrayList<>();
private final ConcurrentLinkedQueue<String> queue = new ConcurrentLinkedQueue<>();
private final Queue<String> queue = new ConcurrentLinkedQueue<>();
public final int queueDelay;