mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 16:56:31 +01:00
SPIGOT-2752: Fix resetMaxHealth
By: md_5 <git@md-5.net>
This commit is contained in:
parent
259427c8af
commit
2215fc8e24
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue