diff --git a/src/pocketmine/entity/Living.php b/src/pocketmine/entity/Living.php index b2e1dbed6..c9030152f 100644 --- a/src/pocketmine/entity/Living.php +++ b/src/pocketmine/entity/Living.php @@ -152,7 +152,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{