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 Invalid Equipment Slots in CondIsWearing #7525

Open
wants to merge 8 commits into
base: dev/patch
Choose a base branch
from

Conversation

Burbulinis
Copy link
Contributor

Description

This PR fixes a missing check whether an entity can use an equipment slot. For example, players cannot use the body equipment slot, causing an exception when using CondIsWearing. This was fixed by filtering the entities that can use the equipment slot inside the stream before calling EntityEquipment#getItem(EquipmentSlot)


Target Minecraft Versions: any
Requirements: none
Related Issues: #7524

@Burbulinis
Copy link
Contributor Author

Burbulinis commented Jan 25, 2025

I wonder how the tests failed after I literally ran them and they succeeded.... Also the canUseEquipmentSlot method doesn't exist for older versions, probably have to manually check 😬

@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Jan 25, 2025
@cheeezburga cheeezburga added the patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version. label Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. patch-ready A PR/issue that has been approved and is ready to be merged/closed for the next patch version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants