diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index e520c70f2..1bae0d543 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -159,7 +159,7 @@ abstract class Living extends Entity implements Damageable{ } public function setMaxHealth(int $amount) : void{ - $this->attributeMap->getAttribute(Attribute::HEALTH)->setMaxValue($amount); + $this->attributeMap->getAttribute(Attribute::HEALTH)->setMaxValue($amount)->setDefaultValue($amount); } public function getAbsorption() : float{