diff options
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/ChunkProviderGenerate.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ChunkProviderGenerate.java b/src/main/java/net/minecraft/server/ChunkProviderGenerate.java index fc91383a..66d77c76 100644 --- a/src/main/java/net/minecraft/server/ChunkProviderGenerate.java +++ b/src/main/java/net/minecraft/server/ChunkProviderGenerate.java @@ -192,6 +192,12 @@ public class ChunkProviderGenerate implements IChunkProvider { } Chunk chunk = new Chunk(this.p, abyte, i, j); + // CraftBukkit start - prime biome data to prevent uninitialized values racing to client + byte[] biomes = chunk.l(); + for(int idx = 0; idx < biomes.length; idx++) { + biomes[idx] = (byte) this.y[idx].id; + } + // CraftBukkit end chunk.initLighting(); return chunk; |