mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 14:35:35 +00:00
Merge branch '3.6'
This commit is contained in:
commit
3bbc0b5d5f
@ -159,7 +159,7 @@ abstract class Living extends Entity implements Damageable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function setMaxHealth(int $amount) : void{
|
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{
|
public function getAbsorption() : float{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user