Block: remove redundant local variable from collidesWithBB()

This commit is contained in:
Dylan K. Taylor 2018-03-15 09:38:14 +00:00
parent a9a55e9558
commit bf97eab98f

View File

@ -568,9 +568,7 @@ class Block extends Position implements BlockIds, Metadatable{
* @return bool
*/
public function collidesWithBB(AxisAlignedBB $bb) : bool{
$bbs = $this->getCollisionBoxes();
foreach($bbs as $bb2){
foreach($this->getCollisionBoxes() as $bb2){
if($bb->intersectsWith($bb2)){
return true;
}