mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 17:59:48 +00:00
Timings: added timings for Player->checkNearEntities()
This commit is contained in:
@ -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){
|
||||
|
Reference in New Issue
Block a user