diff --git a/phpstan.neon.dist b/phpstan.neon.dist index 762eaefc9..8908fecb6 100644 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -38,6 +38,9 @@ parameters: - tests/phpunit - tests/plugins/TesterPlugin - tools + excludePaths: + analyseAndScan: + - build/php dynamicConstantNames: - pocketmine\VersionInfo::IS_DEVELOPMENT_BUILD - pocketmine\DEBUG diff --git a/src/entity/projectile/Projectile.php b/src/entity/projectile/Projectile.php index 9201b6060..baf81322b 100644 --- a/src/entity/projectile/Projectile.php +++ b/src/entity/projectile/Projectile.php @@ -176,7 +176,7 @@ abstract class Projectile extends Entity{ Timings::$entityMove->startTiming(); $start = $this->location->asVector3(); - $end = $start->addVector($this->motion); + $end = $start->add($dx, $dy, $dz); $blockHit = null; $entityHit = null;