Medieval-Factions icon indicating copy to clipboard operation
Medieval-Factions copied to clipboard

BUG: Can't eat food while looking at a different faction's blocks

Open ninjakitty844 opened this issue 2 years ago • 1 comments

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

ninjakitty844 avatar Jul 14 '23 01:07 ninjakitty844

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.

dmccoystephenson avatar Mar 16 '25 04:03 dmccoystephenson