diff options
author | Mike Primm <mike@primmhome.com> | 2012-03-21 16:01:11 -0500 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-03-22 02:36:38 -0400 |
commit | f188afe794d49b8133b498f1a96732152a50b3da (patch) | |
tree | aab22934542fbd1752b5c2144f29687838f8d8fd /src/main/java/net/minecraft/server/ChunkProviderHell.java | |
parent | 09a73d352c2ecc18a4265c70f9bf3dea1559df5c (diff) | |
download | craftbukkit-f188afe794d49b8133b498f1a96732152a50b3da.tar craftbukkit-f188afe794d49b8133b498f1a96732152a50b3da.tar.gz craftbukkit-f188afe794d49b8133b498f1a96732152a50b3da.tar.lz craftbukkit-f188afe794d49b8133b498f1a96732152a50b3da.tar.xz craftbukkit-f188afe794d49b8133b498f1a96732152a50b3da.zip |
[Bleeding] Prevent update inconsistencies on generation/decoration that span chunks. Fixes BUKKIT-871
Diffstat (limited to 'src/main/java/net/minecraft/server/ChunkProviderHell.java')
-rw-r--r-- | src/main/java/net/minecraft/server/ChunkProviderHell.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/ChunkProviderHell.java b/src/main/java/net/minecraft/server/ChunkProviderHell.java index a474f227..a773afd5 100644 --- a/src/main/java/net/minecraft/server/ChunkProviderHell.java +++ b/src/main/java/net/minecraft/server/ChunkProviderHell.java @@ -192,6 +192,13 @@ public class ChunkProviderHell implements IChunkProvider { this.t.a(this, this.o, i, j, abyte); this.c.a(this, this.o, i, j, abyte); Chunk chunk = new Chunk(this.o, abyte, i, j); + // CraftBukkit start - prime biome data to prevent uninitialized values racing to client + BiomeBase[] bb = this.o.getWorldChunkManager().getBiomeBlock(null, i * 16, j * 16, 16, 16); + byte[] biomes = chunk.l(); + for(int idx = 0; idx < biomes.length; idx++) { + biomes[idx] = (byte) bb[idx].id; + } + // CraftBukkit end chunk.m(); return chunk; |