Added lily pad, checked some bounding boxes

This commit is contained in:
Shoghi Cervantes
2015-06-05 13:58:59 +02:00
parent 6e69e15dfd
commit ac4194eb3f
9 changed files with 156 additions and 43 deletions

View File

@ -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();
}
}