Some condition simplifications suggested by static analysis

This commit is contained in:
Dylan K. Taylor
2017-08-16 20:06:48 +01:00
parent eebc52e00b
commit b4c4005009
4 changed files with 4 additions and 18 deletions

View File

@ -1392,10 +1392,7 @@ abstract class Entity extends Location implements Metadatable{
$bb = $block->getBoundingBox();
if($bb !== null and $block->isSolid() and !$block->isTransparent() and $bb->intersectsWith($this->getBoundingBox())){
return true;
}
return false;
return $bb !== null and $block->isSolid() and !$block->isTransparent() and $bb->intersectsWith($this->getBoundingBox());
}
public function fastMove(float $dx, float $dy, float $dz) : bool{