mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
fixed enitites being able to clip through 0 barrier
This commit is contained in:
parent
fc2e104c41
commit
bbe9e0ee13
3 changed files with 17 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue