diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-02 19:31:06 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-03-02 19:31:06 +0000 |
commit | a42e710bbc7c3e694b059145725ff3232f771f13 (patch) | |
tree | 661dd3580b42fc37e4cc5842a9a8f2d4b878e330 /src/main/java/net/minecraft/server/WorldGenForest.java | |
parent | cb669f72a04c9024c724ba362a66fa01d944d127 (diff) | |
download | craftbukkit-a42e710bbc7c3e694b059145725ff3232f771f13.tar craftbukkit-a42e710bbc7c3e694b059145725ff3232f771f13.tar.gz craftbukkit-a42e710bbc7c3e694b059145725ff3232f771f13.tar.lz craftbukkit-a42e710bbc7c3e694b059145725ff3232f771f13.tar.xz craftbukkit-a42e710bbc7c3e694b059145725ff3232f771f13.zip |
Updated from 1.2.2 to 1.2.3. This fixes BUKKIT-943
Diffstat (limited to 'src/main/java/net/minecraft/server/WorldGenForest.java')
-rw-r--r-- | src/main/java/net/minecraft/server/WorldGenForest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/WorldGenForest.java b/src/main/java/net/minecraft/server/WorldGenForest.java index e52f535b..0ea716f7 100644 --- a/src/main/java/net/minecraft/server/WorldGenForest.java +++ b/src/main/java/net/minecraft/server/WorldGenForest.java @@ -24,7 +24,7 @@ public class WorldGenForest extends WorldGenerator { int l = random.nextInt(3) + 5; boolean flag = true; - if (j >= 1 && j + l + 1 <= 128) { + if (j >= 1 && j + l + 1 <= 256) { int i1; int j1; int k1; @@ -43,7 +43,7 @@ public class WorldGenForest extends WorldGenerator { for (j1 = i - b0; j1 <= i + b0 && flag; ++j1) { for (k1 = k - b0; k1 <= k + b0 && flag; ++k1) { - if (i1 >= 0 && i1 < 128) { + if (i1 >= 0 && i1 < 256) { l1 = world.getTypeId(j1, i1, k1); if (l1 != 0 && l1 != Block.LEAVES.id) { flag = false; @@ -59,7 +59,7 @@ public class WorldGenForest extends WorldGenerator { return false; } else { i1 = world.getTypeId(i, j - 1, k); - if ((i1 == Block.GRASS.id || i1 == Block.DIRT.id) && j < 128 - l - 1) { + if ((i1 == Block.GRASS.id || i1 == Block.DIRT.id) && j < 256 - l - 1) { world.setRawTypeId(i, j - 1, k, Block.DIRT.id); int i2; |