mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 19:59:11 +00:00
WorldProvider subsystem no longer depends on Chunk
Instead, it provides the data needed to construct the chunk, which doesn't require the provider to be aware of anywhere near as much logic.
This commit is contained in:
@@ -102,10 +102,8 @@ trait LegacyAnvilChunkTrait{
|
||||
|
||||
return new LoadedChunkData(
|
||||
data: new ChunkData(
|
||||
new Chunk(
|
||||
$subChunks,
|
||||
$chunk->getByte("TerrainPopulated", 0) !== 0
|
||||
),
|
||||
$subChunks,
|
||||
$chunk->getByte("TerrainPopulated", 0) !== 0,
|
||||
($entitiesTag = $chunk->getTag("Entities")) instanceof ListTag ? self::getCompoundList("Entities", $entitiesTag) : [],
|
||||
($tilesTag = $chunk->getTag("TileEntities")) instanceof ListTag ? self::getCompoundList("TileEntities", $tilesTag) : [],
|
||||
),
|
||||
|
Reference in New Issue
Block a user