Fixed server crash when taking damage after being killed when having Health Boost effect

This commit is contained in:
Dylan K. Taylor 2017-04-21 18:51:26 +01:00
parent e7406ba096
commit 00a226921c

View File

@ -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();