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

@@ -69,7 +69,7 @@ class Squid extends WaterAnimal{
$this->swimSpeed = mt_rand(150, 350) / 2000;
$e = $source->getDamager();
if($e !== null){
$this->swimDirection = $this->location->subtract($e->location)->normalize();
$this->swimDirection = $this->location->subtractVector($e->location)->normalize();
}
$this->broadcastAnimation(new SquidInkCloudAnimation($this));