mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-19 04:15:04 +00:00
update pocketmine/math, adapt to add() changes
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user