mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 09:11:26 +01:00
SPIGOT-6843: Wrong PLAINS biome during custom chunk generation
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
94c2fa1b14
commit
96c615d4b8
@ -186,6 +186,17 @@ public class CustomChunkGenerator extends InternalChunkGenerator {
|
||||
}
|
||||
ChunkSection section = sections[sec];
|
||||
|
||||
// SPIGOT-6843: Copy biomes over to new section.
|
||||
// Not the most performant way, but has a small footprint and developer should move to the new api anyway
|
||||
ChunkSection oldSection = csect[sec];
|
||||
for (int biomeX = 0; biomeX < 4; biomeX++) {
|
||||
for (int biomeY = 0; biomeY < 4; biomeY++) {
|
||||
for (int biomeZ = 0; biomeZ < 4; biomeZ++) {
|
||||
section.setBiome(biomeX, biomeY, biomeZ, oldSection.getNoiseBiome(biomeX, biomeY, biomeZ));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
csect[sec] = section;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user