diff --git a/src/main/java/com/suppergerrie2/alwayseat/alwayseat/AlwaysEat.java b/src/main/java/com/suppergerrie2/alwayseat/alwayseat/AlwaysEat.java index dec88b6..4e0433e 100644 --- a/src/main/java/com/suppergerrie2/alwayseat/alwayseat/AlwaysEat.java +++ b/src/main/java/com/suppergerrie2/alwayseat/alwayseat/AlwaysEat.java @@ -47,13 +47,12 @@ public void rightClickItemEvent(PlayerInteractEvent.RightClickItem event) { Player player = event.getEntity(); - if(player.canEat(AlwaysEat.canEatItemWhenFull(itemstack, player))) { + if (AlwaysEat.canEatItemWhenFull(itemstack, player) // leaves no processing to default behavior if the food can not be eaten when full + && player.canEat(true) // seems to be always true, but it's still here to provide compatibility with other mods who may modify the logic + ) { player.startUsingItem(event.getHand()); event.setCanceled(true); event.setCancellationResult(InteractionResult.CONSUME); - } else { - event.setCanceled(true); - event.setCancellationResult(InteractionResult.FAIL); } }