mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 17:29:44 +00:00
Fixed health boost addition
This commit is contained in:
parent
64c366bdb5
commit
c36c0dfa66
@ -571,9 +571,7 @@ abstract class Entity extends Location implements Metadatable{
|
||||
if($this->dead !== true){
|
||||
$this->kill();
|
||||
}
|
||||
}elseif($amount > $this->getMaxHealth()){
|
||||
$this->health = $this->getMaxHealth();
|
||||
}else{
|
||||
}elseif($amount <= $this->getMaxHealth() or $amount < $this->health){
|
||||
$this->health = (int) $amount;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user