diff options
author | GJ <gjmcferrin@gmail.com> | 2014-04-28 09:49:33 -0400 |
---|---|---|
committer | GJ <gjmcferrin@gmail.com> | 2014-04-28 09:49:33 -0400 |
commit | d91ee7d7ab1f4cd80bb869829bdca0d3e8c595ee (patch) | |
tree | 6e4f923f58bb96399b44d5a62f1c165cdf8264d0 /src/main/java | |
parent | 576758bc55941e673b1c4bf5727a1e1329ef29cd (diff) | |
download | craftbukkit-d91ee7d7ab1f4cd80bb869829bdca0d3e8c595ee.tar craftbukkit-d91ee7d7ab1f4cd80bb869829bdca0d3e8c595ee.tar.gz craftbukkit-d91ee7d7ab1f4cd80bb869829bdca0d3e8c595ee.tar.lz craftbukkit-d91ee7d7ab1f4cd80bb869829bdca0d3e8c595ee.tar.xz craftbukkit-d91ee7d7ab1f4cd80bb869829bdca0d3e8c595ee.zip |
[Bleeding] Correct issues with MEGA_REDWOOD trees. Fixes BUKKIT-5568
In commit 6efeddfe57, TALL_REDWOOD was used instead of the proper TreeType
of MEGA_REDWOOD. Additionally, this fixes an issue in CraftWorld with an
improper boolean flag related to the generation of MEGA_REDWOOD trees.
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/net/minecraft/server/BlockSapling.java | 2 | ||||
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/BlockSapling.java b/src/main/java/net/minecraft/server/BlockSapling.java index ab8b07c7..22197bb8 100644 --- a/src/main/java/net/minecraft/server/BlockSapling.java +++ b/src/main/java/net/minecraft/server/BlockSapling.java @@ -94,7 +94,7 @@ public class BlockSapling extends BlockPlant implements IBlockFragilePlantElemen for (i1 = 0; i1 >= -1; --i1) { for (j1 = 0; j1 >= -1; --j1) { if (this.a(world, i + i1, j, k + j1, 1) && this.a(world, i + i1 + 1, j, k + j1, 1) && this.a(world, i + i1, j, k + j1 + 1, 1) && this.a(world, i + i1 + 1, j, k + j1 + 1, 1)) { - treeType = TreeType.TALL_REDWOOD; // CraftBukkit + treeType = TreeType.MEGA_REDWOOD; // CraftBukkit object = new WorldGenMegaTree(false, random.nextBoolean()); flag = true; break label78; diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 8ef5509e..6e170cbf 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -393,7 +393,7 @@ public class CraftWorld implements World { gen = new WorldGenForestTree(true); break; case MEGA_REDWOOD: - gen = new WorldGenMegaTree(true, rand.nextBoolean()); + gen = new WorldGenMegaTree(false, rand.nextBoolean()); break; case TALL_BIRCH: gen = new WorldGenForest(true, true); |