Medieval-Factions
Medieval-Factions copied to clipboard
BUG: Can't eat food while looking at a different faction's blocks
Describe the bug
If you are looking at a different faction's claimed blocks, you cannot eat.
To Reproduce
Look at a different faction's claimed blocks. Try to eat.
Expected behavior
I would expect to just be able to eat.
Screenshots or Logs
(If applicable, add screenshots to help explain your problem.)
Java version
- [ ] Java 8
- [ ] Java 11
- [ ] Java 16
- [x ] Java 17
Plugin version
- [ ] v4.1
- [ ] v4.2
- [ ] v4.3
- [ ] v4.4
- [ ] v4.5.x
- [x ] v5.20
Spigot/Paper version (Please Specify which server software you are using)
- [ ] 1.16.x
- [ ] 1.17.x
- [ ] 1.18.x
- [x ] 1.19.3
I remember this being an issue in MF 4. Previous attempts to fix it introduced a new bug that allowed players to bypass protections when holding certain items. We need a solution that prevents this exploit. One possibility is canceling the interaction event while simulating the eating action.