mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-06 11:57:10 +00:00
Fixed server crash when taking damage after being killed when having Health Boost effect
This commit is contained in:
parent
e7406ba096
commit
00a226921c
@ -2672,9 +2672,9 @@ class Player extends Human implements CommandSender, InventoryHolder, ChunkLoade
|
||||
$this->deadTicks = 0;
|
||||
$this->noDamageTicks = 60;
|
||||
|
||||
$this->removeAllEffects();
|
||||
$this->setHealth($this->getMaxHealth());
|
||||
|
||||
$this->removeAllEffects();
|
||||
$this->sendData($this);
|
||||
|
||||
$this->sendSettings();
|
||||
|
Loading…
x
Reference in New Issue
Block a user