Fixed a couple bugs from the Oil commit

This commit is contained in:
CovertJaguar 2013-05-02 02:59:30 -07:00
parent 52ffd07bb3
commit 0b44d97359
2 changed files with 6 additions and 4 deletions

View file

@ -91,7 +91,7 @@ public class BuildCraftCore {
public static RenderMode render = RenderMode.Full;
public static boolean debugMode = true;
public static boolean debugMode = false;
public static boolean modifyWorld = false;
public static boolean trackNetworkUsage = false;

View file

@ -64,12 +64,14 @@ public class OilPopulate {
int k = startZ + z;
int blockId = world.getBlockId(i, j, k);
if (blockId != 0 && blockId == Block.sand.blockID) {
if (blockId != 0) {
if (blockId == Block.sand.blockID) {
generateSurfaceDeposit(world, rand, i, j, k, 3);
}
break;
}
}
}
boolean mediumDeposit = rand.nextDouble() <= (0.15 / 100.0);
boolean largeDeposit = rand.nextDouble() <= (0.005 / 100.0);