fixed enitites being able to clip through 0 barrier

This commit is contained in:
GameHerobrine 2025-07-16 19:16:11 +03:00
parent fc2e104c41
commit bbe9e0ee13
3 changed files with 17 additions and 6 deletions

View file

@ -277,7 +277,7 @@ class Level{
$blockBounds = StaticBlock::$prealloc[$bid]::getCollisionBoundingBoxes($this, $x, $y, $z, $e); //StaticBlock::getBoundingBoxForBlockCoords($b, $x, $y, $z);
foreach($blockBounds as $blockBound){
if($aABB->intersectsWith($blockBound)) $aABBs[] = $blockBound;
if($aABB->intersectsWith_($blockBound)) $aABBs[] = $blockBound;
}
}
}