diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 6293a201..4091b880 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -1,7 +1,5 @@ level->rayTraceBlocks(new Vector($this->x, $this->y + $this->getEyeHeight(), $this->z), new Vector($e->x, $e->y + $e->getEyeHeight(), $e->z)) == null; + return $this->level->rayTraceBlocks(new Vector3($this->x, $this->y + $this->getEyeHeight(), $this->z), new Vector3($e->x, $e->y + $e->getEyeHeight(), $e->z)) == null; } /**