From 19ade45ea5b983512c6c621255b8c6e147fc80b7 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Thu, 13 Jun 2024 23:07:17 -0400 Subject: [PATCH] Update vanilla.js disable chunk tests Should be done separately in p-chunk repo or in mineflayer --- test/vanilla.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/vanilla.js b/test/vanilla.js index 7a24008c..75733682 100644 --- a/test/vanilla.js +++ b/test/vanilla.js @@ -5,7 +5,7 @@ const { waitFor } = require('../src/datatypes/util') const { getPort } = require('./util') async function test (version) { - const ChunkColumn = require('bedrock-provider').chunk('bedrock_' + (version.includes('1.19') ? '1.18.30' : version)) // TODO: Fix prismarine-chunk + // const ChunkColumn = require('bedrock-provider').chunk('bedrock_' + (version.includes('1.19') ? '1.18.30' : version)) // TODO: Fix prismarine-chunk // Start the server, wait for it to accept clients, throws on timeout const port = await getPort() @@ -48,10 +48,10 @@ async function test (version) { client.queue('tick_sync', { request_time: BigInt(Date.now()), response_time: BigInt(Date.now()) }) }, 200) - client.on('level_chunk', async packet => { // Chunk read test - const cc = new ChunkColumn(packet.x, packet.z) - await cc.networkDecodeNoCache(packet.payload, packet.sub_chunk_count) - }) + // client.on('level_chunk', async packet => { // Chunk read test + // const cc = new ChunkColumn(packet.x, packet.z) + // await cc.networkDecodeNoCache(packet.payload, packet.sub_chunk_count) + // }) console.log('Awaiting join')