mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Chunks no longer contain their own coordinates
This commit is contained in:
@ -145,7 +145,7 @@ class Flat extends Generator{
|
||||
}
|
||||
|
||||
protected function generateBaseChunk() : void{
|
||||
$this->chunk = new Chunk(0, 0);
|
||||
$this->chunk = new Chunk();
|
||||
$this->chunk->setGenerated();
|
||||
|
||||
for($Z = 0; $Z < 16; ++$Z){
|
||||
@ -170,10 +170,7 @@ class Flat extends Generator{
|
||||
}
|
||||
|
||||
public function generateChunk(ChunkManager $world, int $chunkX, int $chunkZ) : void{
|
||||
$chunk = clone $this->chunk;
|
||||
$chunk->setX($chunkX);
|
||||
$chunk->setZ($chunkZ);
|
||||
$world->setChunk($chunkX, $chunkZ, $chunk);
|
||||
$world->setChunk($chunkX, $chunkZ, clone $this->chunk);
|
||||
}
|
||||
|
||||
public function populateChunk(ChunkManager $world, int $chunkX, int $chunkZ) : void{
|
||||
|
Reference in New Issue
Block a user