WesJD / AnvilGUI

Capture user input in Minecraft through an anvil GUI in under 20 lines of code
MIT License
466 stars 111 forks source link

fix anvil gui triggered when outside of GUI #298

Closed mastercake10 closed 8 months ago

mastercake10 commented 9 months ago

only call the clickHandler on valid slot numbers (0-2) ignoring -999 which is invalid. Fixes #296

WesJD commented 8 months ago

Thank you for your swift response 🙏🏻 . Always thankful for your help on this project.

WesJD commented 8 months ago

Could you update the version from 1.9.0-SNAPSHOT to 1.9.1-SNAPSHOT? I don't have permission to modify your fork. Then we should be good to merge.

mastercake10 commented 8 months ago

I added some more changes to the PR that address the bugs in #296 that were caused by the last commits + a fix for the cursor item disappearing when opening the anvil GUI via another GUI.

Tested on both spigot 1.8.9 and 1.20.2.