Use maxDeadTicks instead of hardcoded 20

This commit is contained in:
Dylan K. Taylor 2017-11-22 18:58:58 +00:00
parent e9e22db1e7
commit 47f94eebd1

View File

@ -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{