Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit d4bc14a

Browse files
authored
fix mc 1.18 (PrismarineJS#934)
* use java 17 for mc 1.18 * increase timeout because 1.18 server is slow to boot * add chunkBlockEntity value in packet test
1 parent d4208b2 commit d4bc14a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Java JDK
2525
uses: actions/[email protected]
2626
with:
27-
java-version: '16'
27+
java-version: '17'
2828
distribution: 'adopt'
2929
- name: Install dependencies
3030
run: npm install

test/clientTest.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ for (const supportedVersion of mc.supportedVersions) {
4848
})
4949

5050
describe('offline', function () {
51-
this.timeout(90 * 1000)
51+
this.timeout(240 * 1000)
5252
before(async () => {
5353
console.log(new Date() + 'starting server ' + version.minecraftVersion)
5454
await new Promise((resolve, reject) => {

test/packetTest.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ const values = {
175175
},
176176
tags: [{ tagName: 'hi', entries: [1, 2, 3, 4, 5] }],
177177
ingredient: [slotValue],
178-
particleData: null
178+
particleData: null,
179+
chunkBlockEntity: { x: 10, y: 11, z: 12, type: 25 }
179180
}
180181

181182
function getValue (_type, packet) {

0 commit comments

Comments
 (0)