Redwood saplings actually grow now and now only require a single sapling

This commit is contained in:
Adubbz 2013-11-23 11:34:14 +11:00
parent 4c2a40268f
commit 18bb2ef162

View file

@ -131,41 +131,39 @@ public class BlockBOPColorizedSapling extends BlockSapling
{ {
switch (meta) switch (meta)
{ {
case 0: // Acacia Tree case 0: // Acacia Tree
obj = new WorldGenAcacia(false); obj = new WorldGenAcacia(false);
break; break;
case 1: // Mangrove Tree case 1: // Mangrove Tree
obj = new WorldGenMangrove(false); obj = new WorldGenMangrove(false);
break; break;
case 2: // Palm Tree case 2: // Palm Tree
rnd = random.nextInt(4); rnd = random.nextInt(4);
if (rnd == 0) { if (rnd == 0) {
obj = new WorldGenPalmTree1(); obj = new WorldGenPalmTree1();
} else { } else {
obj = new WorldGenPalmTree3(); obj = new WorldGenPalmTree3();
} }
break; break;
case 3: // Redwood Tree case 3: // Redwood Tree
if (this.isSameSapling(world, x + 1, y, z, 3) && this.isSameSapling(world, x - 1, y, z, 3) && this.isSameSapling(world, x, y, z + 1, 3) && this.isSameSapling(world, x, y, z - 1, 3) && this.isSameSapling(world, x + 1, y, z + 1, 3) && this.isSameSapling(world, x + 1, y, z - 1, 3) && this.isSameSapling(world, x - 1, y, z + 1, 3) && this.isSameSapling(world, x - 1, y, z - 1, 3)) { obj = new WorldGenRedwoodTree2(false);
obj = new WorldGenRedwoodTree2(false); break;
}
break;
case 4: // Willow Tree case 4: // Willow Tree
obj = new WorldGenWillow(); obj = new WorldGenWillow();
break; break;
case 5: // Pine Tree case 5: // Pine Tree
obj = new WorldGenPineTree(); obj = new WorldGenPineTree();
break; break;
case 6: // Sacred Oak case 6: // Sacred Oak
obj = new WorldGenMassiveTree(false); obj = new WorldGenMassiveTree(false);
break; break;
} }
} }