Final cleanup: fix imports and indentation

- Remove unused imports (array_map, count) from SubChunk.php
- Fix indentation in ChunkSerializer.php serializeSubChunk method
- Fix indentation in FastChunkSerializer.php serialize/deserialize methods
- Ensure consistent tab-based indentation throughout all modified files
- Clean up whitespace and formatting issues
This commit is contained in:
Dylan T. 2025-06-27 16:25:17 +00:00
parent 7472c5b73d
commit f01d87474d
4 changed files with 4 additions and 8 deletions

View File

@ -112,7 +112,6 @@ final class ChunkSerializer{
} }
public static function serializeSubChunk(SubChunk $subChunk, BlockTranslator $blockTranslator, PacketSerializer $stream, bool $persistentBlockStates) : void{ public static function serializeSubChunk(SubChunk $subChunk, BlockTranslator $blockTranslator, PacketSerializer $stream, bool $persistentBlockStates) : void{
// Create array from non-empty layers
$layers = []; $layers = [];
if(!$subChunk->isBlockLayerEmpty()){ if(!$subChunk->isBlockLayerEmpty()){
$layers[] = $subChunk->getBlockLayer(); $layers[] = $subChunk->getBlockLayer();

View File

@ -23,9 +23,6 @@ declare(strict_types=1);
namespace pocketmine\world\format; namespace pocketmine\world\format;
use function array_map;
use function count;
class SubChunk{ class SubChunk{
public const COORD_BIT_SIZE = 4; public const COORD_BIT_SIZE = 4;
public const COORD_MASK = ~(~0 << self::COORD_BIT_SIZE); public const COORD_MASK = ~(~0 << self::COORD_BIT_SIZE);