mojira.dev
MC-64070

Changing difficulty from peaceful may cause inaccurate hunger bars on multiplayer servers

The bug

Changing difficulty from peaceful to easy/normal/hard may cause inaccurate hunger bars on multiplayer servers.

How to reproduce

  1. You're player A. Create a world and change difficulty to peaceful.

  2. Open to LAN and have another player join. They're player B.

  3. Change difficulty to normal.

  4. Do this command:

    /effect give @a hunger 10 100

Player A's hunger bar will work as intended, but player B's hunger bar will regenerate haunches during and after the effect. This is purely visual, as they will starve to death. Every tick of starvation damage will reset the hunger to its correct value, but it will continue to visually regenerate in-between those damage ticks.

Linked issues

Comments 24

If you're playing on peaceful, this behavior is working as intended.

I've seen this happen, too. And themogminer, if he were on peaceful, his health should've regenerated.

Here's another video of it that my friend made back on July 23rd http://youtu.be/7aYeyXRYybc, so it definitely started happening in Snapshots 14w30a/b/c or earlier.

14 more comments

Confirmed for 18w32a.

This ticket needs Reproduction steps. Here's what I would write:

—

  1. You're Player A. Create a world and change difficulty to peaceful.

  2. Open to LAN and have another player join. They're Player B.

  3. Change difficulty to normal.

  4. Do this command:

    effect give @a hunger 10 100

Player A's hunger bar will work as intended, but Player B's hunger bar will regenerate haunches during and after the effect. This is purely visual, as they will starve to death. Every tick of starvation damage will reset the hunger to its correct value, but it will continue to visually regenerate inbetween those damage ticks.

—

This ticket's affected versions also keeps to be kept updated, I'd be ok with being the reporter.

 

 

Confirmed for 18w33a

here 2 years later unfortunately, accidentally reproduced this bug on 1.16.3

easiest fix is to restart server

what if this is happening to me but im not on a server

 

Can you confirm you can reproduce this issue on the latest version?

Ryan Pinski

Paint

(Unassigned)

Confirmed

Platform

Important

UI

HUD, hunger, hungerbar, multiplayer, peaceful

Minecraft 14w30c, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 15w46a, Minecraft 1.8.9, ..., 20w20a, 1.16 Pre-release 8, 20w28a, 20w51a, 21w11a

Retrieved