Skip to content

Commit

Permalink
update java
Browse files Browse the repository at this point in the history
  • Loading branch information
extremeheat committed Jul 6, 2024
1 parent de729dd commit 3d37e6f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: 17
java-version: 21
java-package: jre
- name: Install Dependencies
run: npm install
Expand Down
1 change: 1 addition & 0 deletions lib/plugins/game.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ function inject (bot, options) {

// 1.20.2
bot._client.on('registry_data', (packet) => {
console.log('Loading Dimension Codec', JSON.stringify(packet))
bot.registry.loadDimensionCodec(packet.codec || packet)
})

Expand Down
1 change: 1 addition & 0 deletions test/internalTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ for (const supportedVersion of mineflayer.testedVersions) {
// 25565 - local server, 25566 - proxy server
port: 25567
})
console.log('Server Codec', server.registryCodec)
server.on('listening', () => {
bot = mineflayer.createBot({
username: 'player',
Expand Down

0 comments on commit 3d37e6f

Please sign in to comment.