mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-08-11 22:08:42 +00:00
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:
parent
7472c5b73d
commit
f01d87474d
@ -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();
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user