-
Notifications
You must be signed in to change notification settings - Fork 6
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
Event does not run if armor is swapped #2
Comments
I noticed this when using this library too, it seems to be caused in the ArmorListener.java class on line 143. The reason why its not being detected, is that the plugin is only checking if the armor slot is empty. I never got around to making a full fix in this repo since I am quite busy at the moment but I can attach my "patch" which is just a listener. Hope this helps My comment in the patch should contain more info:
Here is the class:
|
IIRC an option was added to the APi to check if a block is "interactible" - that would solve having to hardcode all those blocks. I'll take a look whether I find that method again (probably in Material #isInteractable() or sth) |
If you right click an armor piece in your hotbar to swap with a piece that you're wearing, (1.19.4 feature) then the event does not run.
The text was updated successfully, but these errors were encountered: