mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-04 00:59:51 +00:00
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:
parent
0badaeb8f4
commit
b22b493abb
@ -1653,10 +1653,7 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
|
|||||||
$this->sendAttributes();
|
$this->sendAttributes();
|
||||||
|
|
||||||
if(!$this->isAlive() and $this->spawned){
|
if(!$this->isAlive() and $this->spawned){
|
||||||
$this->deadTicks += $tickDiff;
|
$this->onDeathUpdate($tickDiff);
|
||||||
if($this->deadTicks >= $this->maxDeadTicks){
|
|
||||||
$this->despawnFromAll();
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user