Updated CraftBukkit to 1.2
This commit is contained in:
@@ -24,7 +24,7 @@ public class WorldGenForest extends WorldGenerator {
|
||||
int l = random.nextInt(3) + 5;
|
||||
boolean flag = true;
|
||||
|
||||
if (j >= 1 && j + l + 1 <= world.getHeight()) { // CraftBukkit
|
||||
if (j >= 1 && j + l + 1 <= 128) {
|
||||
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 < world.getHeight()) { // CraftBukkit
|
||||
if (i1 >= 0 && i1 < 128) {
|
||||
l1 = world.getTypeId(j1, i1, k1);
|
||||
if (l1 != 0 && l1 != Block.LEAVES.id) {
|
||||
flag = false;
|
||||
@@ -59,8 +59,9 @@ 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 < world.getHeight() - l - 1) { // CraftBukkit
|
||||
if ((i1 == Block.GRASS.id || i1 == Block.DIRT.id) && j < 128 - l - 1) {
|
||||
world.setRawTypeId(i, j - 1, k, Block.DIRT.id);
|
||||
|
||||
int i2;
|
||||
|
||||
for (i2 = j - 3 + l; i2 <= j + l; ++i2) {
|
||||
@@ -73,7 +74,7 @@ public class WorldGenForest extends WorldGenerator {
|
||||
for (int k2 = k - k1; k2 <= k + k1; ++k2) {
|
||||
int l2 = k2 - k;
|
||||
|
||||
if ((Math.abs(j2) != k1 || Math.abs(l2) != k1 || random.nextInt(2) != 0 && j1 != 0) && !Block.o[world.getTypeId(l1, i2, k2)]) {
|
||||
if ((Math.abs(j2) != k1 || Math.abs(l2) != k1 || random.nextInt(2) != 0 && j1 != 0) && !Block.n[world.getTypeId(l1, i2, k2)]) {
|
||||
this.setTypeAndData(world, l1, i2, k2, Block.LEAVES.id, 2);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user