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

Fixed client crashing when receiving vanilla potion effect packets #1559

Merged
merged 1 commit into from
Jul 31, 2017

Conversation

jjtParadox
Copy link
Contributor

@jjtParadox jjtParadox commented Sep 6, 2016

Fixes #1460 and fixes #1553
Some more advanced servers connect players to a lobby before sending the player to the proper receiving server. This allows for multiple players across multiple versions of modded and vanilla minecraft to interact on the same server. However, AM2's modifications to potion packets was causing issues if a player in a "vanilla" lobby was exposed to a potion effect. Vanilla potion packets are only 8 bytes in size (int, byte, byte, short) but AM2 potion packets are 11 bytes (int, int, byte, short), causing the client running AM2 to be unable to properly read vanilla packets. This pull request modifies potion packets to be read differently based on the size of the incoming packet and has been tested functional in singleplayer, multiplayer, and multiplayer vanilla with potions, beacons, and milk.

If anyone has suggestions to improve the asm modifications, let me know 😄

Also something screwed up the tabs in this file, but that's a separate topic.

Fixes 1553 and 1460
Also included is a small debug tool that writes the end result of ASM modification to a .class file if in dev environment
@Mithion Mithion merged commit b5c9045 into Mithion:master Jul 31, 2017
@jjtParadox jjtParadox deleted the asm-hubs-fix branch November 15, 2017 20:11
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

Successfully merging this pull request may close these issues.

Bug effect on "spigot server 1.7 " "V1.4.0.009" Error when joining HUB
2 participants