From 38e7914cc536f6ddd807c615362000c9fb7f54d5 Mon Sep 17 00:00:00 2001 From: extremeheat Date: Fri, 23 Jun 2023 16:01:35 -0400 Subject: [PATCH] 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 --- test/packetTest.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/packetTest.js b/test/packetTest.js index c4b4ba5..0fc81af 100644 --- a/test/packetTest.js +++ b/test/packetTest.js @@ -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 () {