Mojira Archive
MC-393

Starvation prevents sleeping in bed on peaceful.

What I expected to happen was...:
That I could sleep in a bed on peaceful mode if the food bar is empty.

What actually happened was...:
Damage ticks from starvation prevented this.

Steps to Reproduce:
1. Play Survival on any game mode that drains the food bar until it's empty, example "easy" and then switch to Peaceful mode once drained and starving to death.
2. Collect resources for and make a bed.
3. Attempt to sleep in it.

If the player is starving to death and switches to peaceful mode, the damage ticks from starvation should be stopped because they are simply just annoying and prevent sleeping in a bed while the player is trying to find a food source which isn't always easy to come by. This should not affect the ability of regenerating hearts in peaceful mode. There are other problems with the food system which I won't get into detail about except to say that they should be dynamic, and not biome specific, as sometimes food is very hard to find anywhere on a map, for example islands in ocean biomes.