mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added lily pad, checked some bounding boxes
This commit is contained in:
@ -1070,7 +1070,7 @@ class Level implements ChunkManager, Metadatable{
|
||||
for($x = $minX; $x <= $maxX; ++$x){
|
||||
for($y = $minY; $y <= $maxY; ++$y){
|
||||
$block = $this->getBlock($this->temporalVector->setComponents($x, $y, $z));
|
||||
if($block->getId() !== 0 and $block->collidesWithBB($bb)){
|
||||
if(!$block->canPassThrough() and $block->collidesWithBB($bb)){
|
||||
$collides[] = $block->getBoundingBox();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user