Merge branch 'release/3.3'

This commit is contained in:
Dylan K. Taylor 2018-09-23 16:35:53 +01:00
commit 4f200c5183

View File

@ -100,11 +100,7 @@ abstract class Thin extends Transparent{
} }
//FIXME: currently there's no proper way to tell if a block is a full-block, so we check the bounding box size //FIXME: currently there's no proper way to tell if a block is a full-block, so we check the bounding box size
$bbs = $block->getCollisionBoxes(); $bb = $block->getBoundingBox();
if(count($bbs) === 1){ return $bb !== null and $bb->getAverageEdgeLength() >= 1;
return $bbs[0]->getAverageEdgeLength() >= 1;
}
return false;
} }
} }