World: remove unused variable

This commit is contained in:
Dylan K. Taylor 2021-09-05 15:15:48 +01:00
parent 19513c65f0
commit 2fc33d3bff
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -1804,7 +1804,7 @@ class World implements ChunkManager{
foreach($tx->getBlocks() as [$x, $y, $z, $block]){
$block->position($this, $x, $y, $z);
foreach($block->getCollisionBoxes() as $collisionBox){
if(count($entities = $this->getCollidingEntities($collisionBox)) > 0){
if(count($this->getCollidingEntities($collisionBox)) > 0){
return false; //Entity in block
}
}