mojira.dev
MC-313838

Hunger bars are emptied when eating food that restores very large amounts of hunger

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:

  1. Switch to survival mode.

  2. 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}]
  3. Eat the bread.

  4. 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.

Attachments

Comments 1

Avoma

(Unassigned)

Unconfirmed

26.3, 26.4 Release Candidate 1

Retrieved