Timings: added timings for Player->checkNearEntities()

This commit is contained in:
Dylan K. Taylor
2018-05-28 16:27:03 +01:00
parent 3ee6bfca2a
commit 2eaba7c936
2 changed files with 5 additions and 0 deletions

View File

@ -1709,7 +1709,9 @@ class Player extends Human implements CommandSender, ChunkLoader, IPlayer{
Timings::$timerEntityBaseTick->stopTiming();
if(!$this->isSpectator() and $this->isAlive()){
Timings::$playerCheckNearEntitiesTimer->startTiming();
$this->checkNearEntities($tickDiff);
Timings::$playerCheckNearEntitiesTimer->stopTiming();
if($this->speed !== null){
if($this->onGround){