Skip to content

Commit

Permalink
Update vanilla.js disable chunk tests
Browse files Browse the repository at this point in the history
Should be done separately in p-chunk repo or in mineflayer
  • Loading branch information
extremeheat authored Jun 14, 2024
1 parent 16e15d8 commit 19ade45
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/vanilla.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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')

Expand Down

0 comments on commit 19ade45

Please sign in to comment.