fix: pass custom brand for ws:// servers

This commit is contained in:
Vitaly Turovsky 2025-03-26 05:08:10 +03:00
commit 797459b0fc

View file

@ -463,9 +463,11 @@ export async function connect (connectOptions: ConnectOptions) {
await downloadMcData(finalVersion)
}
const brand = clientDataStream ? 'minecraft-web-client' : undefined
bot = mineflayer.createBot({
host: server.host,
port: server.port ? +server.port : undefined,
brand,
version: finalVersion || false,
...clientDataStream ? {
stream: clientDataStream as any,