TU43 Structures, bug fixes & minor changes
- Elytra flight, damage, kinetic energy, pretty much any bug someone reported, paper doll, etc. - Fossil & Igloo generation - Texture interpolation - Iggy mouse fix for world settings - Neo branding on main screen - Release build txt logger - Debug mode spectator - Several server fixes - Flowerpot fixes - Several more changes made in TU43
This commit is contained in:
@@ -68,7 +68,8 @@ void FoodData::tick(shared_ptr<Player> player)
|
||||
else if (player->level->getGameRules()->getBoolean(GameRules::RULE_NATURAL_REGENERATION) && foodLevel >= FoodConstants::HEAL_LEVEL && player->isHurt())
|
||||
{
|
||||
tickTimer++;
|
||||
if (tickTimer >= FoodConstants::HEALTH_TICK_COUNT)
|
||||
int threshold = (saturationLevel > 0.0f) ? 10 : FoodConstants::HEALTH_TICK_COUNT;
|
||||
if (tickTimer >= threshold)
|
||||
{
|
||||
player->heal(1);
|
||||
addExhaustion(FoodConstants::EXHAUSTION_HEAL);
|
||||
|
||||
Reference in New Issue
Block a user