From 797459b0fc2fb84f98f2eccebccea1f130536906 Mon Sep 17 00:00:00 2001 From: Vitaly Turovsky Date: Wed, 26 Mar 2025 05:08:10 +0300 Subject: [PATCH] fix: pass custom brand for ws:// servers --- src/index.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.ts b/src/index.ts index 67a751e2..87ea7f1b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,