update pocketmine/math, adapt to add() changes

This commit is contained in:
Dylan K. Taylor
2020-05-19 12:26:18 +01:00
parent f0fefecf40
commit 148228e360
8 changed files with 13 additions and 13 deletions

View File

@@ -746,7 +746,7 @@ abstract class Entity{
$diffPosition = $this->location->distanceSquared($this->lastLocation);
$diffRotation = ($this->location->yaw - $this->lastLocation->yaw) ** 2 + ($this->location->pitch - $this->lastLocation->pitch) ** 2;
$diffMotion = $this->motion->subtract($this->lastMotion)->lengthSquared();
$diffMotion = $this->motion->subtractVector($this->lastMotion)->lengthSquared();
$still = $this->motion->lengthSquared() == 0.0;
$wasStill = $this->lastMotion->lengthSquared() == 0.0;