diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 6da71d6e3..f72a6c1ec 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -1512,13 +1512,9 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ return true; } - public function move(float $dx, float $dy, float $dz) : bool{ + public function move(float $dx, float $dy, float $dz) : void{ $this->blocksAround = null; - if($dx == 0 and $dz == 0 and $dy == 0){ - return true; - } - Timings::$entityMoveTimer->startTiming(); $movX = $dx; @@ -1662,8 +1658,6 @@ abstract class Entity extends Location implements Metadatable, EntityIds{ //TODO: vehicle collision events (first we need to spawn them!) Timings::$entityMoveTimer->stopTiming(); - - return true; } protected function checkGroundState(float $movX, float $movY, float $movZ, float $dx, float $dy, float $dz){ diff --git a/src/pocketmine/entity/projectile/Projectile.php b/src/pocketmine/entity/projectile/Projectile.php index 18d76a80c..bdb942315 100644 --- a/src/pocketmine/entity/projectile/Projectile.php +++ b/src/pocketmine/entity/projectile/Projectile.php @@ -153,7 +153,7 @@ abstract class Projectile extends Entity{ return $parent; } - public function move(float $dx, float $dy, float $dz) : bool{ + public function move(float $dx, float $dy, float $dz) : void{ $this->blocksAround = null; Timings::$entityMoveTimer->startTiming(); @@ -246,8 +246,6 @@ abstract class Projectile extends Entity{ Timings::$entityMoveTimer->stopTiming(); - - return true; } /**