test/vanilla: temporary hack to allow 1.19 chunk tests to pass

This commit is contained in:
extremeheat 2022-06-09 13:08:51 -04:00 committed by GitHub
commit df31b5d63a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,7 +4,7 @@ const { Client } = require('../src/client')
const { waitFor } = require('../src/datatypes/util')
async function test (version) {
const ChunkColumn = require('bedrock-provider').chunk('bedrock_' + version)
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 handle = await vanillaServer.startServerAndWait2(version, 1000 * 220)