diff options
author | t00thpick1 <t00thpick1dirko@gmail.com> | 2013-12-06 12:51:54 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2013-12-07 20:31:04 -0600 |
commit | 6f4d9bea2b4975a15d6b11f0a5c603b0c953f349 (patch) | |
tree | b2bae746b89febacea025f22eee81489d1620104 /src/main/java | |
parent | 97cb46f9f8fcfed8ae47e89f80c598ba4423c8d7 (diff) | |
download | craftbukkit-6f4d9bea2b4975a15d6b11f0a5c603b0c953f349.tar craftbukkit-6f4d9bea2b4975a15d6b11f0a5c603b0c953f349.tar.gz craftbukkit-6f4d9bea2b4975a15d6b11f0a5c603b0c953f349.tar.lz craftbukkit-6f4d9bea2b4975a15d6b11f0a5c603b0c953f349.tar.xz craftbukkit-6f4d9bea2b4975a15d6b11f0a5c603b0c953f349.zip |
[Bleeding] Correctly generate giant mushrooms. Fixes BUKKIT-5066
This change fixes the reference to the local variables representing the
block position during large mushroom generation.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenHugeMushroom.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenHugeMushroom.java b/src/main/java/net/minecraft/server/WorldGenHugeMushroom.java index 160fc7ed..67273f21 100644 --- a/src/main/java/net/minecraft/server/WorldGenHugeMushroom.java +++ b/src/main/java/net/minecraft/server/WorldGenHugeMushroom.java @@ -168,7 +168,7 @@ public class WorldGenHugeMushroom extends WorldGenerator implements BlockSapling if (event == null) { this.setTypeAndData(world, j2, j1, k2, Block.e(Block.b(Blocks.BIG_MUSHROOM_1) + l), l2); } else { - BlockState state = bukkitWorld.getBlockAt(i2, k1, k2).getState(); + BlockState state = bukkitWorld.getBlockAt(j2, j1, k2).getState(); state.setTypeId(Block.b(Blocks.BIG_MUSHROOM_1) + l); state.setData(new MaterialData(Block.b(Blocks.BIG_MUSHROOM_1) + l, (byte) l2)); event.getBlocks().add(state); |