Skip to content

Commit

Permalink
Fix AppleCore accidentally modifying health regen
Browse files Browse the repository at this point in the history
In 1.11, health regen was changed to add more exhaustion for each heal tick, but AppleCore was never updated to reflect that change. See https://minecraft.gamepedia.com/1.11#Gameplay_2
  • Loading branch information
squeek502 committed Feb 17, 2019
1 parent 25fecce commit 2297188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions java/squeek/applecore/api/hunger/HealthRegenEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public GetRegenTickPeriod(EntityPlayer player)
public static class Regen extends HealthRegenEvent
{
public float deltaHealth = 1f;
public float deltaExhaustion = 4f;
public float deltaExhaustion = 6f;

public Regen(EntityPlayer player)
{
Expand Down Expand Up @@ -186,8 +186,8 @@ public static class SaturatedRegen extends HealthRegenEvent
public SaturatedRegen(EntityPlayer player)
{
super(player);
this.deltaExhaustion = Math.min(player.getFoodStats().getSaturationLevel(), 4.0F);
this.deltaHealth = deltaExhaustion / 4.0F;
this.deltaExhaustion = Math.min(player.getFoodStats().getSaturationLevel(), 6.0F);
this.deltaHealth = deltaExhaustion / 6.0F;
}
}
}

0 comments on commit 2297188

Please sign in to comment.