fix: pass custom brand for ws:// servers
This commit is contained in:
parent
f8ef748e58
commit
797459b0fc
1 changed files with 2 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue