mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 20:19:44 +00:00
fixed cactus collisions
This commit is contained in:
parent
aeffaee590
commit
529f2d37dc
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue