Update vanilla.js disable chunk tests
Should be done separately in p-chunk repo or in mineflayer
This commit is contained in:
parent
16e15d80a5
commit
19ade45ea5
1 changed files with 5 additions and 5 deletions
|
|
@ -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')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue