mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-03 08:35:20 +00:00
World: remove unused variable
This commit is contained in:
@ -1804,7 +1804,7 @@ class World implements ChunkManager{
|
|||||||
foreach($tx->getBlocks() as [$x, $y, $z, $block]){
|
foreach($tx->getBlocks() as [$x, $y, $z, $block]){
|
||||||
$block->position($this, $x, $y, $z);
|
$block->position($this, $x, $y, $z);
|
||||||
foreach($block->getCollisionBoxes() as $collisionBox){
|
foreach($block->getCollisionBoxes() as $collisionBox){
|
||||||
if(count($entities = $this->getCollidingEntities($collisionBox)) > 0){
|
if(count($this->getCollidingEntities($collisionBox)) > 0){
|
||||||
return false; //Entity in block
|
return false; //Entity in block
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user