From 0a1a4f33f3af0c55b3563a99f18e9641741b7036 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Sun, 24 Mar 2024 02:49:58 +0300 Subject: [PATCH] why did u use \Ds\Vector --- src/entity/Entity.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } /**