Commented unused check

This commit is contained in:
GotoLink 2013-10-23 22:42:44 +02:00
commit 693e7804b4

View file

@ -23,12 +23,20 @@ public class StructureMysticDungeon extends WorldGenerator {
int j1 = (i + random.nextInt(8)) - random.nextInt(8); int j1 = (i + random.nextInt(8)) - random.nextInt(8);
int k1 = (j + random.nextInt(4)) - random.nextInt(4); int k1 = (j + random.nextInt(4)) - random.nextInt(4);
int l1 = (k + random.nextInt(8)) - random.nextInt(8); int l1 = (k + random.nextInt(8)) - random.nextInt(8);
if (world.isAirBlock(j1 - 1, k1 + 1, l1) && world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) && world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 - 1, k1 + 2, l1 + 1) boolean flag = false;
&& world.getBlockId(j1, k1, l1) == Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) == Block.stone.blockID /*
&& world.getBlockId(j1 - 1, k1, l1 + 1) == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) == Block.stone.blockID * if (world.isAirBlock(j1 - 1, k1 + 1, l1) &&
&& world.getBlockId(j1, k1 + 1, l1 + 1) == Block.stone.blockID) * world.isAirBlock(j1 - 1, k1 + 1, l1 + 1) &&
; * world.isAirBlock(j1 - 1, k1 + 2, l1) && world.isAirBlock(j1 -
boolean flag = true; * 1, k1 + 2, l1 + 1) && world.getBlockId(j1, k1, l1) ==
* Block.stone.blockID && world.getBlockId(j1, k1, l1 + 1) ==
* Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1) ==
* Block.stone.blockID && world.getBlockId(j1 - 1, k1, l1 + 1)
* == Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1) ==
* Block.stone.blockID && world.getBlockId(j1, k1 + 1, l1 + 1)
* == Block.stone.blockID)
*/
flag = true;
if (!flag) { if (!flag) {
continue; continue;
} }
@ -1868,6 +1876,7 @@ public class StructureMysticDungeon extends WorldGenerator {
world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2); world.setBlock(j1 - 8, k1 - 10, l1 - 4, Block.blockNetherQuartz.blockID, 2, 2);
world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2); world.setBlock(j1 - 8, k1 - 10, l1 - 2, Block.blockNetherQuartz.blockID, 2, 2);
} }
System.out.println((j1 - 8) + "," + (k1 - 10) + "," + (l1 - 2));
} }
} }
return true; return true;