mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
Block: remove redundant local variable from collidesWithBB()
This commit is contained in:
parent
a9a55e9558
commit
bf97eab98f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user