mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +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($amount <= 0){
|
||||||
if($this->isAlive()){
|
if($this->isAlive()){
|
||||||
$this->health = 0;
|
|
||||||
$this->kill();
|
$this->kill();
|
||||||
}
|
}
|
||||||
}elseif($amount <= $this->getMaxHealth() or $amount < $this->health){
|
}elseif($amount <= $this->getMaxHealth() or $amount < $this->health){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user