Implemented 1.6!

This commit is contained in:
Dinnerbone committed 2011-05-26 13:48:22 +01:00
1 parent f463453d73
commit 6903f20242
76 files changed
+2699 -2266

No files matched your search

@@ -14,14 +14,16 @@ public class BlockSapling extends BlockFlower {
}
public void a(World world, int i, int j, int k, Random random) {
super.a(world, i, j, k, random);
if (world.getLightLevel(i, j + 1, k) >= 9 && random.nextInt(30) == 0) {
int l = world.getData(i, j, k);
if (!world.isStatic) {
super.a(world, i, j, k, random);
if (world.getLightLevel(i, j + 1, k) >= 9 && random.nextInt(30) == 0) {
int l = world.getData(i, j, k);
if ((l & 8) == 0) {
world.setData(i, j, k, l | 8);
} else {
this.b(world, i, j, k, random);
if ((l & 8) == 0) {
world.setData(i, j, k, l | 8);
} else {
this.b(world, i, j, k, random);
}
}
}
}