mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-16 02:38:54 +00:00
fixed tiles and entities not getting saved on fast-deserialized chunks
This commit is contained in:
parent
54ef965b2a
commit
f83e5c195c
@ -107,7 +107,7 @@ class Chunk{
|
|||||||
* @param string $biomeIds
|
* @param string $biomeIds
|
||||||
* @param int[] $heightMap
|
* @param int[] $heightMap
|
||||||
*/
|
*/
|
||||||
public function __construct(int $chunkX, int $chunkZ, array $subChunks = [], array $entities = [], array $tiles = [], string $biomeIds = "", array $heightMap = []){
|
public function __construct(int $chunkX, int $chunkZ, array $subChunks = [], ?array $entities = null, ?array $tiles = null, string $biomeIds = "", array $heightMap = []){
|
||||||
$this->x = $chunkX;
|
$this->x = $chunkX;
|
||||||
$this->z = $chunkZ;
|
$this->z = $chunkZ;
|
||||||
|
|
||||||
@ -875,7 +875,7 @@ class Chunk{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$chunk = new Chunk($x, $z, $subChunks, [], [], $biomeIds, $heightMap);
|
$chunk = new Chunk($x, $z, $subChunks, null, null, $biomeIds, $heightMap);
|
||||||
$chunk->setGenerated($terrainGenerated);
|
$chunk->setGenerated($terrainGenerated);
|
||||||
$chunk->setPopulated($terrainPopulated);
|
$chunk->setPopulated($terrainPopulated);
|
||||||
$chunk->setLightPopulated($lightPopulated);
|
$chunk->setLightPopulated($lightPopulated);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user