This commit is contained in:
asiekierka 2015-06-11 09:12:45 +02:00
parent fa0d2e1b33
commit 821936c3cb
2 changed files with 2 additions and 3 deletions

View file

@ -29,7 +29,6 @@ public class BlockSpring extends Block {
public static final XorShift128Random rand = new XorShift128Random();
public enum EnumSpring {
WATER(5, -1, Blocks.water),
OIL(6000, 8, null); // Set in BuildCraftEnergy
public static final EnumSpring[] VALUES = values();

View file

@ -56,14 +56,14 @@ public class SpringPopulate {
int posX = x + random.nextInt(16);
int posZ = z + random.nextInt(16);
for (int i = 0; i < 5; i++) {
for (int i = 8; i >= 0; i--) {
Block candidate = world.getBlock(posX, i, posZ);
if (candidate != Blocks.bedrock) {
continue;
}
world.setBlock(posX, i + 1, posZ, BuildCraftCore.springBlock);
world.setBlock(posX, i, posZ, BuildCraftCore.springBlock);
for (int j = i + 2; j < world.getActualHeight() - 10; j++) {
if (!boreToSurface(world, posX, j, posZ)) {