From d981515a7540327c554e67b8cc3583c7debfaf2b Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 30 May 2021 00:09:33 -0400 Subject: [PATCH] Release 3.2.1 --- HISTORY.md | 12 ++++++++---- data/latest/types.yaml | 2 +- package.json | 2 +- src/createClient.js | 4 +--- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/HISTORY.md b/HISTORY.md index d6f0347..b731bf8 100644 --- a/HISTORY.md +++ b/HISTORY.md @@ -1,10 +1,14 @@ +## 3.2.1 +* Add `authTitle` option to Relay proxy [#92](https://github.com/PrismarineJS/bedrock-protocol/pull/92) +* Protocol, type definition fixes + ## 3.2.0 -* Fix empty chunks on proxy spawn (#89) -* Send skin data to server (#88) -* Support xbox title + live.com auth (#86) +* Fix empty chunks on proxy spawn [#89](https://github.com/PrismarineJS/bedrock-protocol/pull/89) +* Send skin data to server [#88](https://github.com/PrismarineJS/bedrock-protocol/pull/88) +* Support xbox title + live.com auth [#86](https://github.com/PrismarineJS/bedrock-protocol/pull/86) * Protocol updates and fixes -* Fix third party servers, optional client encryption (#83) +* Fix third party servers, optional client encryption [#83](https://github.com/PrismarineJS/bedrock-protocol/pull/83) ## 3.1.0 * Add support for 1.16 diff --git a/data/latest/types.yaml b/data/latest/types.yaml index 5e05b31..95f395e 100644 --- a/data/latest/types.yaml +++ b/data/latest/types.yaml @@ -130,7 +130,7 @@ Item: # When server authoritative inventory is enabled, all allocated items have a unique ID used to identify # a specifc item instance. has_stack_id: u8 - # StackNetworkID is the network ID of the item stack. If the stack is empty, 0 is always written for this + # StackNetworkID is the network ID of this item *instance*. If the stack is empty, 0 is always written for this # field. If not, the field should be set to 1 if the server authoritative inventories are disabled in the # StartGame packet, or to a unique stack ID if it is enabled. stack_id: has_stack_id ? diff --git a/package.json b/package.json index 4f6280b..eb8a935 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bedrock-protocol", - "version": "3.2.0", + "version": "3.2.1", "description": "Minecraft Bedrock Edition protocol library", "main": "index.js", "scripts": { diff --git a/src/createClient.js b/src/createClient.js index 34a07db..50009be 100644 --- a/src/createClient.js +++ b/src/createClient.js @@ -42,9 +42,7 @@ function connect (client) { client.queue('client_cache_status', { enabled: false }) client.queue('tick_sync', { request_time: BigInt(Date.now()), response_time: 0n }) - if (client.viewDistance) { - sleep(500).then(() => client.queue('request_chunk_radius', { chunk_radius: client.viewDistance })) - } + sleep(500).then(() => client.queue('request_chunk_radius', { chunk_radius: client.viewDistance || 10 })) }) const KEEPALIVE_INTERVAL = 10 // Send tick sync packets every 10 ticks