mirror of
https://github.com/PrismarineJS/node-minecraft-protocol.git
synced 2024-11-14 19:04:59 -05:00
Fix test for entityMetadata on 1.19.4 (#1231)
* Fix test for entityMetadata on 1.19.4 A field type was changed from int to a named enum * oops * fix timing
This commit is contained in:
parent
6579b0b564
commit
38e7914cc5
1 changed files with 5 additions and 0 deletions
|
@ -249,6 +249,11 @@ for (const supportedVersion of mc.supportedVersions) {
|
||||||
before(async function () {
|
before(async function () {
|
||||||
PORT = await getPort()
|
PORT = await getPort()
|
||||||
server = new Server(version.minecraftVersion)
|
server = new Server(version.minecraftVersion)
|
||||||
|
if (mcData.supportFeature('mcDataHasEntityMetadata')) {
|
||||||
|
values.entityMetadata[0].type = 'byte'
|
||||||
|
} else {
|
||||||
|
values.entityMetadata[0].type = 0
|
||||||
|
}
|
||||||
return new Promise((resolve) => {
|
return new Promise((resolve) => {
|
||||||
console.log(`Using port for tests: ${PORT}`)
|
console.log(`Using port for tests: ${PORT}`)
|
||||||
server.once('listening', function () {
|
server.once('listening', function () {
|
||||||
|
|
Loading…
Reference in a new issue