diff options
author | md_5 <md_5@bigpond.com> | 2012-04-25 15:38:15 +1000 |
---|---|---|
committer | EvilSeph <evilseph@gmail.com> | 2012-04-25 22:30:42 -0400 |
commit | 3e382034e96ecd57a53898f8d5290a5c64804597 (patch) | |
tree | aed62e9a576b6290580670ad4fc5714f7730d45e /src/main/java/net/minecraft/server/WorldGenBigTree.java | |
parent | 0153fe1f33c5b06ecd170cf107d975c1e9c53159 (diff) | |
download | craftbukkit-3e382034e96ecd57a53898f8d5290a5c64804597.tar craftbukkit-3e382034e96ecd57a53898f8d5290a5c64804597.tar.gz craftbukkit-3e382034e96ecd57a53898f8d5290a5c64804597.tar.lz craftbukkit-3e382034e96ecd57a53898f8d5290a5c64804597.tar.xz craftbukkit-3e382034e96ecd57a53898f8d5290a5c64804597.zip |
Fix growing large tress near world height. Fixes BUKKIT-1072
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldGenBigTree.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenBigTree.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenBigTree.java b/src/main/java/net/minecraft/server/WorldGenBigTree.java index 864ab1c7..5d8a8cd6 100644 --- a/src/main/java/net/minecraft/server/WorldGenBigTree.java +++ b/src/main/java/net/minecraft/server/WorldGenBigTree.java @@ -8,7 +8,7 @@ public class WorldGenBigTree extends WorldGenerator implements BlockSapling.Tree static final byte[] a = new byte[] { (byte) 2, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 1}; Random b = new Random(); - BlockChangeDelegate world; // CraftBukkit + BlockChangeDelegate world; // CraftBukkit int[] d = new int[] { 0, 0, 0}; int e = 0; int f; @@ -296,7 +296,7 @@ public class WorldGenBigTree extends WorldGenerator implements BlockSapling.Tree aint3[b3] = MathHelper.floor((double) aint[b3] + (double) i * d1); int k = this.world.getTypeId(aint3[0], aint3[1], aint3[2]); - if (k != 0 && k != 18) { + if ((k != 0 && k != 18) || aint3[1] >= 256) { // CraftBukkit - fix trees wrapping around break; } } |