mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-13 01:09:44 +00:00
ChunkSerializer: avoid using loop vars outside loop scope
This commit is contained in:
parent
ee36ac9875
commit
04a3e71047
@ -44,10 +44,10 @@ final class ChunkSerializer{
|
||||
if($chunk->getSubChunk($count - 1)->isEmptyFast()){
|
||||
continue;
|
||||
}
|
||||
break;
|
||||
return $count;
|
||||
}
|
||||
|
||||
return $count;
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static function serialize(Chunk $chunk, ?string $tiles = null) : string{
|
||||
|
Loading…
x
Reference in New Issue
Block a user