From 33071ecfffad01854afcf4e05b8e58e4e9fe7239 Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 4 Nov 2016 18:11:36 +1100 Subject: [PATCH] SPIGOT-2752: Fix resetMaxHealth --- .../java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index cffa778fdd..80aae1048e 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -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() {