The Bug:
Hunger bars are emptied when eating food that restores very large amounts of hunger.
Empty hunger bars are filled up instead, therefore introducing an inconsistency.
Steps to Reproduce:
Switch to survival mode.
Obtain bread that restores a very large amount of hunger and can always be eaten by using the command provided below.
/give @s minecraft:bread[minecraft:food={nutrition:2147483647,saturation:0,can_always_eat:true}]Eat the bread.
Observe if your hunger bar is filled up or emptied.
Observed Behavior:
Hunger bars are emptied when eating food that restores very large amounts of hunger.
Expected Behavior:
Hunger bars would be filled up when eating food that restores very large amounts of hunger.