mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 00:33:59 +00:00
Revert bad duct-tape fix that broke lots of other things
Revert "Fixed players getting full health on rejoin after quitting on death" This reverts commit 1d4bafb6ff3e768dc8fed0de414779ddc5e4ddb0.
This commit is contained in:
parent
26d4169fea
commit
4a4900e5e7
@ -922,7 +922,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{
|
||||
|
||||
if($amount <= 0){
|
||||
if($this->isAlive()){
|
||||
$this->health = 0;
|
||||
$this->kill();
|
||||
}
|
||||
}elseif($amount <= $this->getMaxHealth() or $amount < $this->health){
|
||||
|
Loading…
x
Reference in New Issue
Block a user