mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Remove biome colours and fix biome id arrays
This commit is contained in:
@ -111,15 +111,10 @@ class Flat extends Generator{
|
||||
|
||||
$this->chunk = clone $this->level->getChunk($chunkX, $chunkZ);
|
||||
$this->chunk->setGenerated();
|
||||
$c = Biome::getBiome($biome)->getColor();
|
||||
$R = $c >> 16;
|
||||
$G = ($c >> 8) & 0xff;
|
||||
$B = $c & 0xff;
|
||||
|
||||
for($Z = 0; $Z < 16; ++$Z){
|
||||
for($X = 0; $X < 16; ++$X){
|
||||
$this->chunk->setBiomeId($X, $Z, $biome);
|
||||
$this->chunk->setBiomeColor($X, $Z, $R, $G, $B);
|
||||
for($y = 0; $y < 128; ++$y){
|
||||
$this->chunk->setBlock($X, $y, $Z, ...$this->structure[$y]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user