mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-11 05:55:33 +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
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function collidesWithBB(AxisAlignedBB $bb) : bool{
|
public function collidesWithBB(AxisAlignedBB $bb) : bool{
|
||||||
$bbs = $this->getCollisionBoxes();
|
foreach($this->getCollisionBoxes() as $bb2){
|
||||||
|
|
||||||
foreach($bbs as $bb2){
|
|
||||||
if($bb->intersectsWith($bb2)){
|
if($bb->intersectsWith($bb2)){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user