tweaked collisions

This commit is contained in:
GameHerobrine 2024-03-02 18:37:13 +03:00
parent 0a26fbd442
commit 8fca8d09b8
3 changed files with 7 additions and 5 deletions

View file

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