From 514a84fd19a6e9f89abed284b7b9a6be9227ecf7 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Sun, 21 Mar 2021 16:03:24 -0400 Subject: [PATCH] 1.16.210 fix --- data/latest/proto.yml | 2 +- data/latest/types.yaml | 1 + src/options.js | 10 +++++----- test/vanilla.js | 1 + test/vanilla.test.js | 13 +++++++------ 5 files changed, 15 insertions(+), 12 deletions(-) diff --git a/data/latest/proto.yml b/data/latest/proto.yml index 74e75a5..bc026ba 100644 --- a/data/latest/proto.yml +++ b/data/latest/proto.yml @@ -2155,7 +2155,7 @@ packet_player_auth_input: # as it can be calculated by the server itself. delta: vec3f - +#TODO: update to use the new `shift` option in bitflags InputFlag: [ "bitflags", { "type": "varint", "flags": { diff --git a/data/latest/types.yaml b/data/latest/types.yaml index b7c08e1..c99030e 100644 --- a/data/latest/types.yaml +++ b/data/latest/types.yaml @@ -607,6 +607,7 @@ SkinImage: Skin: skin_id: string + play_fab_id: string skin_resource_pack: string skin_data: SkinImage animations: []li32 diff --git a/src/options.js b/src/options.js index 4e35042..6e64d09 100644 --- a/src/options.js +++ b/src/options.js @@ -3,6 +3,11 @@ const MIN_VERSION = '1.16.201' // Currently supported verson const CURRENT_VERSION = '1.16.210' +const Versions = { + '1.16.210': 428, + '1.16.201': 422 +} + const defaultOptions = { // https://minecraft.gamepedia.com/Protocol_version#Bedrock_Edition_2 version: CURRENT_VERSION, @@ -14,9 +19,4 @@ const defaultOptions = { offline: false } -const Versions = { - '1.16.210': 428, - '1.16.201': 422 -} - module.exports = { defaultOptions, MIN_VERSION, CURRENT_VERSION, Versions } diff --git a/test/vanilla.js b/test/vanilla.js index 658ae78..1088396 100644 --- a/test/vanilla.js +++ b/test/vanilla.js @@ -12,6 +12,7 @@ async function test (version) { hostname: '127.0.0.1', port: 19130, username: 'Notch', + version, offline: true }) diff --git a/test/vanilla.test.js b/test/vanilla.test.js index 32a656a..d820a5b 100644 --- a/test/vanilla.test.js +++ b/test/vanilla.test.js @@ -3,11 +3,12 @@ const { clientTest } = require('./vanilla') const { Versions } = require('../src/options') -describe('vanilla server test', function () { +describe ('vanilla server test', function () { this.timeout(120 * 1000) - it('client spawns', async () => { - for (const version in Versions) { - await clientTest(version) - } - }) + + for (const version in Versions) { + it('client spawns ' + version, async () => { + await clientTest(version) + }) + } }) \ No newline at end of file