Fixed Player->onDeathUpdate() not being called

I did not realize this was going to be a problem... argh! stupid messy player impl D:
This commit is contained in:
Dylan K. Taylor 2017-11-23 14:23:57 +00:00
parent 0badaeb8f4
commit b22b493abb

View File

@ -1653,10 +1653,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
$this->sendAttributes();
if(!$this->isAlive() and $this->spawned){
$this->deadTicks += $tickDiff;
if($this->deadTicks >= $this->maxDeadTicks){
$this->despawnFromAll();
}
$this->onDeathUpdate($tickDiff);
return true;
}