This commit is contained in:
ChomeNS
2023-06-15 21:14:07 +07:00
parent 57a97ba2e5
commit 3a840b32d1

View File

@@ -83,7 +83,7 @@ public class VoiceChatPlugin extends Bot.Listener {
e.printStackTrace();
}
bot.executorService().execute(() -> {
new Thread(() -> {
sendToServer(new NetworkMessage(new AuthenticatePacket(initializationData.playerUUID(), initializationData.secret())));
while (running) {
@@ -100,7 +100,7 @@ public class VoiceChatPlugin extends Bot.Listener {
else break; // is this neccessary?
}
}
});
}).start();
}
}