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:
extremeheat 2023-06-23 16:01:35 -04:00 committed by GitHub
parent 6579b0b564
commit 38e7914cc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -249,6 +249,11 @@ for (const supportedVersion of mc.supportedVersions) {
before(async function () {
PORT = await getPort()
server = new Server(version.minecraftVersion)
if (mcData.supportFeature('mcDataHasEntityMetadata')) {
values.entityMetadata[0].type = 'byte'
} else {
values.entityMetadata[0].type = 0
}
return new Promise((resolve) => {
console.log(`Using port for tests: ${PORT}`)
server.once('listening', function () {