mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 12:18:46 +00:00
Fixed entityBaseTickTimer doesn't cover child overrides
This commit is contained in:
parent
44f1dedbf8
commit
54b6a5710e
@ -1121,8 +1121,6 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function entityBaseTick($tickDiff = 1){
|
public function entityBaseTick($tickDiff = 1){
|
||||||
|
|
||||||
Timings::$timerEntityBaseTick->startTiming();
|
|
||||||
//TODO: check vehicles
|
//TODO: check vehicles
|
||||||
|
|
||||||
$this->blocksAround = null;
|
$this->blocksAround = null;
|
||||||
@ -1135,7 +1133,6 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
$this->close();
|
$this->close();
|
||||||
}
|
}
|
||||||
|
|
||||||
Timings::$timerEntityBaseTick->stopTiming();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1199,8 +1196,6 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
$this->age += $tickDiff;
|
$this->age += $tickDiff;
|
||||||
$this->ticksLived += $tickDiff;
|
$this->ticksLived += $tickDiff;
|
||||||
|
|
||||||
Timings::$timerEntityBaseTick->stopTiming();
|
|
||||||
|
|
||||||
return $hasUpdate;
|
return $hasUpdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1272,7 +1267,9 @@ abstract class Entity extends Location implements Metadatable{
|
|||||||
|
|
||||||
$this->timings->startTiming();
|
$this->timings->startTiming();
|
||||||
|
|
||||||
|
Timings::$timerEntityBaseTick->startTiming();
|
||||||
$hasUpdate = $this->entityBaseTick($tickDiff);
|
$hasUpdate = $this->entityBaseTick($tickDiff);
|
||||||
|
Timings::$timerEntityBaseTick->stopTiming();
|
||||||
|
|
||||||
$this->updateMovement();
|
$this->updateMovement();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user