SPIGOT-2752: Fix resetMaxHealth

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-11-04 18:11:36 +11:00
parent 259427c8af
commit 2215fc8e24

View file

@ -117,7 +117,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
}
public void resetMaxHealth() {
setMaxHealth(getHandle().getMaxHealth());
setMaxHealth(getHandle().getAttributeInstance(GenericAttributes.maxHealth).getAttribute().b()); // PAIL: getDefault
}
public double getEyeHeight() {