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

Better handling of other loginwrapperchannel (FML2, FML3) #34

Merged
merged 6 commits into from
Mar 17, 2024

Conversation

Mykola1453
Copy link
Contributor

@Mykola1453 Mykola1453 commented Jan 3, 2024

There are some errors upon login reported with the current implementation of FML2 & FML3 protocol. Examples: Quark mod (version 410+, FML3), MrCrayfish's Gun Mod (both FML2 & 3). These mods use custom handshakes.

The way to deal with it is to acknowledge any packet from other loginwrapperchannels (from mods). This is enough to login with mentioned mods, but I implement this in try...catch block should it ever lead to an exception in some other unknown cases. Acknowledgments to @letschill, to whose code I returned while implementing this change.

Fixes #29

loginwrapper.channel,
'received'
)
console.log('other loginwrapperchannel', loginwrapper.channel, 'received')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this print be removed?

@Mykola1453
Copy link
Contributor Author

I don't think these messages will be noticed by user upon successful login, because they'll be followed by a wall of text before bot spawns (like "Chunk size is 90781 but only 82244 was read ; partial packet..."). But I made the messaging here more concise for the sake of clarity.

@rom1504 rom1504 merged commit 3a7f0ea into PrismarineJS:master Mar 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

Error while login
2 participants