mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
SPIGOT-2752: Fix resetMaxHealth
This commit is contained in:
1 parent
709783c131
commit
33071ecfff
1 file changed
+1
-1
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user