refactor: move minecraft:brand custom payload to the Bot class

This commit is contained in:
ChomeNS
2024-12-07 16:07:27 +07:00
parent bf70930cd8
commit 9b320d64b5
2 changed files with 8 additions and 4 deletions

View File

@@ -51,10 +51,6 @@ public class VoiceChatPlugin extends Bot.Listener {
public void packetReceived(ClientboundLoginPacket ignored) {
// totally didn't use a real minecraft client with voicechat mod to get this
bot.session.send(new ServerboundCustomPayloadPacket(
Key.key("minecraft:brand"),
"\u0006fabric".getBytes() // should i use fabric here?
));
bot.session.send(new ServerboundCustomPayloadPacket(
Key.key("voicechat:request_secret"),