Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking change in dependency #42

Open
covyy opened this issue Dec 24, 2024 · 2 comments
Open

Breaking change in dependency #42

covyy opened this issue Dec 24, 2024 · 2 comments

Comments

@covyy
Copy link

covyy commented Dec 24, 2024

As the "minecraft-prackets" module updated from version 1.5 to 1.7 a breaking change was introduced:
getPacket() in /src/instant_connect_proxy.js uses
let packet = packets[ver]?.['from-server']?.[name][0].json where ver is "1.8" (as defined in the verMap)
but version "1.8" was renamed to "1.8.8" in "minecraft-packets", so the packet variable here is always undefined.

https://github.com/PrismarineJS/minecraft-packets/tags

updating verMap to
const verMap = {
'1.8.8': '1.8.8', // used to map to 1.8
'1.8.9': '1.8.8' // used to map to 1.8
}

is a quick fix but maybe other breaking changes where introduced in minecraft-packets?

Alternatively use the outdated minecraft-packets module in package.json:
"minecraft-packets": "^1.5.0" to "minecraft-packets": "1.5.0"

@rom1504
Copy link
Member

rom1504 commented Dec 24, 2024 via email

@covyy
Copy link
Author

covyy commented Jan 14, 2025

Here the fix:
#43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants