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/WorldGenerator.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/WorldGenerator.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenerator.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenerator.java b/src/main/java/net/minecraft/server/WorldGenerator.java index ae9b7ca6..d0a3f1b4 100644 --- a/src/main/java/net/minecraft/server/WorldGenerator.java +++ b/src/main/java/net/minecraft/server/WorldGenerator.java @@ -24,6 +24,13 @@ public abstract class WorldGenerator { protected void setTypeAndData(BlockChangeDelegate world, int i, int j, int k, int l, int i1) { if (this.a) { world.setTypeIdAndData(i, j, k, l, i1); + // CraftBukkit start - do equiv of setTypeIdAndData, but skip doing physics to prevent fades + } + else if ((world instanceof World) && ((World) world).getChunkAt(i >> 4, k >> 4).sentToClient) { + if (world.setRawTypeIdAndData(i, j, k, l, i1)) { + ((World) world).notify(i, j, k); + } + // CraftBukkt end } else { world.setRawTypeIdAndData(i, j, k, l, i1); } |