From 6f4d9bea2b4975a15d6b11f0a5c603b0c953f349 Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Fri, 6 Dec 2013 12:51:54 -0500 Subject: [PATCH] [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. --- src/main/java/net/minecraft/server/WorldGenHugeMushroom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/WorldGenHugeMushroom.java b/src/main/java/net/minecraft/server/WorldGenHugeMushroom.java index 160fc7ed19..67273f2155 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);