mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +00:00
Use maxDeadTicks instead of hardcoded 20
This commit is contained in:
parent
e9e22db1e7
commit
47f94eebd1
@ -440,7 +440,7 @@ abstract class Living extends Entity implements Damageable{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->deadTicks >= 20;
|
return $this->deadTicks >= $this->maxDeadTicks;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function startDeathAnimation() : void{
|
protected function startDeathAnimation() : void{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user