mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-22 04:29:43 +00:00
Better speed measure
This commit is contained in:
parent
1dbbf08f1b
commit
fceb076b9b
1 changed files with 1 additions and 1 deletions
|
|
@ -622,7 +622,7 @@ class Entity extends Position{
|
||||||
$this->speedY = $speedY;
|
$this->speedY = $speedY;
|
||||||
$this->speedZ = $speedZ;
|
$this->speedZ = $speedZ;
|
||||||
$this->speed = $origin->distance($final) / $diffTime;
|
$this->speed = $origin->distance($final) / $diffTime;
|
||||||
array_shift($this->speedMeasure);
|
unset($this->speedMeasure[key($this->speedMeasure)]);
|
||||||
$this->speedMeasure[] = $this->speed;
|
$this->speedMeasure[] = $this->speed;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue