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

Fix missing Equipment body slot #827

Merged
merged 3 commits into from
Jun 20, 2024

Conversation

dawon
Copy link
Contributor

@dawon dawon commented Jun 10, 2024

Should fix #806.

I am not sure how to handle backward compatibility if it is needed in this case at all, as I am not sure how MC handled horse armor before 1.20.5...

@joshuaprince
Copy link
Contributor

+1, can confirm that this fixes wrapping ENTITY_EQUIPMENT packets, and fixed horse and wolf armor causing the kick described in #806 on my 1.20.6 server. I've been running the fix without any similar issues for a few days now.

It's very easy to reproduce the original bug and show this fixes it:

if (event.getPacketType() == PacketType.Play.Server.ENTITY_EQUIPMENT) {
    WrapperPlayServerEntityEquipment w = new WrapperPlayServerEntityEquipment(event);
}

joshuaprince added a commit to joshuaprince/packetevents that referenced this pull request Jun 19, 2024
@Bram1903
Copy link
Contributor

Ahh, it was that simple! I'll test this tomorrow on 1.8 and some other versions to see how that's being dealt with. Would love for this to be fixed before the next release.

@Bram1903
Copy link
Contributor

Bram1903 commented Jun 20, 2024

Thanks for looking into this troopah! This fixes a lot of issues I am having!

@retrooper retrooper merged commit abe5b9f into retrooper:2.0 Jun 20, 2024
2 checks passed
@retrooper
Copy link
Owner

No worries.

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] Kick when trying to lay with GSit on any slab
4 participants