Fixed entityBaseTickTimer doesn't cover child overrides

This commit is contained in:
Dylan K. Taylor 2017-08-07 14:20:57 +01:00
parent 44f1dedbf8
commit 54b6a5710e

View File

@ -1121,8 +1121,6 @@ abstract class Entity extends Location implements Metadatable{
}
public function entityBaseTick($tickDiff = 1){
Timings::$timerEntityBaseTick->startTiming();
//TODO: check vehicles
$this->blocksAround = null;
@ -1135,7 +1133,6 @@ abstract class Entity extends Location implements Metadatable{
$this->close();
}
Timings::$timerEntityBaseTick->stopTiming();
return false;
}
@ -1199,8 +1196,6 @@ abstract class Entity extends Location implements Metadatable{
$this->age += $tickDiff;
$this->ticksLived += $tickDiff;
Timings::$timerEntityBaseTick->stopTiming();
return $hasUpdate;
}
@ -1272,7 +1267,9 @@ abstract class Entity extends Location implements Metadatable{
$this->timings->startTiming();
Timings::$timerEntityBaseTick->startTiming();
$hasUpdate = $this->entityBaseTick($tickDiff);
Timings::$timerEntityBaseTick->stopTiming();
$this->updateMovement();