fixed cactus collisions

This commit is contained in:
GameHerobrine 2024-06-07 05:56:09 +03:00
parent aeffaee590
commit 529f2d37dc
2 changed files with 2 additions and 1 deletions

View file

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