From 3e382034e96ecd57a53898f8d5290a5c64804597 Mon Sep 17 00:00:00 2001 From: md_5 Date: Wed, 25 Apr 2012 15:38:15 +1000 Subject: [PATCH] Fix growing large tress near world height. Fixes BUKKIT-1072 --- src/main/java/net/minecraft/server/WorldGenBigTree.java | 4 ++-- 1 file 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 864ab1c77e..5d8a8cd6b8 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; } }