diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 60c6f4469..dec663191 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -862,6 +862,10 @@ abstract class Entity extends Location implements Metadatable{ } protected function checkObstruction($x, $y, $z){ + if(count($this->level->getCollisionCubes($this, $this->getBoundingBox(), false)) === 0){ + return false; + } + $i = Math::floorFloat($x); $j = Math::floorFloat($y); $k = Math::floorFloat($z);