mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
tweaked collisions
This commit is contained in:
parent
0a26fbd442
commit
8fca8d09b8
3 changed files with 7 additions and 5 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue