Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-17 13:30:06 +01:00
Correct biome data in ChunkSnapshot - wrong API used
Dieser Commit ist enthalten in:
Ursprung
64322ed26b
Commit
aa66851119
@ -154,11 +154,10 @@ public class CraftChunk implements Chunk {
|
|||||||
|
|
||||||
if (includeBiome || includeBiomeTempRain) {
|
if (includeBiome || includeBiomeTempRain) {
|
||||||
WorldChunkManager wcm = chunk.world.getWorldChunkManager();
|
WorldChunkManager wcm = chunk.world.getWorldChunkManager();
|
||||||
BiomeBase[] biomeBase = wcm.getBiomes((BiomeBase[])null, getX() << 4, getZ() << 4, 16, 16);
|
|
||||||
|
|
||||||
if (includeBiome) {
|
if (includeBiome) {
|
||||||
biome = new BiomeBase[256];
|
biome = new BiomeBase[256];
|
||||||
System.arraycopy(biomeBase, 0, biome, 0, biome.length);
|
wcm.a(biome, x << 4, z << 4, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (includeBiomeTempRain) {
|
if (includeBiomeTempRain) {
|
||||||
@ -212,11 +211,10 @@ public class CraftChunk implements Chunk {
|
|||||||
|
|
||||||
if (includeBiome || includeBiomeTempRain) {
|
if (includeBiome || includeBiomeTempRain) {
|
||||||
WorldChunkManager wcm = world.getHandle().getWorldChunkManager();
|
WorldChunkManager wcm = world.getHandle().getWorldChunkManager();
|
||||||
BiomeBase[] biomeBase = wcm.getBiomes((BiomeBase[])null, x << 4, z << 4, 16, 16);
|
|
||||||
|
|
||||||
if (includeBiome) {
|
if (includeBiome) {
|
||||||
biome = new BiomeBase[256];
|
biome = new BiomeBase[256];
|
||||||
System.arraycopy(biomeBase, 0, biome, 0, biome.length);
|
wcm.a(biome, x << 4, z << 4, 16, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (includeBiomeTempRain) {
|
if (includeBiomeTempRain) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren