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);