From e9c6f473efbfbe069e73da73ddd496c180e0bf0d Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Tue, 29 Aug 2023 07:00:09 +0300 Subject: [PATCH] maybe i should stop touching that part --- src/entity/Entity.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entity/Entity.php b/src/entity/Entity.php index 52c89bb6..9732d61c 100644 --- a/src/entity/Entity.php +++ b/src/entity/Entity.php @@ -538,9 +538,9 @@ class Entity extends Position $ywMin = floor($aABB->minY + 0.4); $ywMax = ceil($aABB->maxY - 0.4); - for($x = $x0; $x < $x1; ++$x){ - for($y = $y0; $y < $y1; ++$y){ - for($z = $z0; $z < $z1; ++$z){ + for($x = $x0; $x <= $x1; ++$x){ + for($y = $y0; $y <= $y1; ++$y){ + for($z = $z0; $z <= $z1; ++$z){ $b = $this->level->level->getBlockID($x, $y, $z); if(($b === WATER || $b === STILL_WATER)){ $water = $y == ($y1 - 1);