SpoutDev/Vanilla — pull request #125 by MWisBest (2012-04-15 01:01:42+00:00)
Title: Add real Minecraft health+hunger handling

The current way of handling health is really strange. Based on my testing, this is how Minecraft handles hunger, except for one small thing: I don't think exhaustion is supposed to be set back to 0. I think it is supposed to have 4 subtracted from it, however any time I tried to do that I just ended up with it adding 4 to exhaustion for some strange reason beyond my understanding.

TODO: Proper handling of exhaustion. adding 0.1 every tick is definitely not right, seeing how fast hunger drains out now.