Fixing NPE with gem generation.
This commit is contained in:
parent
4b60b36c31
commit
a0bce71974
75 changed files with 150 additions and 75 deletions
|
@ -39,7 +39,8 @@ public class BiomeGenAlps extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,8 @@ public class BiomeGenAlpsBase extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,8 @@ public class BiomeGenAlpsForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,8 @@ public class BiomeGenArctic extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,8 @@ public class BiomeGenBadlands extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public class BiomeGenBambooForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ public class BiomeGenBirchForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,8 @@ public class BiomeGenBorealForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,8 @@ public class BiomeGenCanyon extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,8 @@ public class BiomeGenCanyonRavine extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,8 @@ public class BiomeGenChaparral extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,8 @@ public class BiomeGenCherryBlossomGrove extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,8 @@ public class BiomeGenConiferousForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public class BiomeGenConiferousForestSnow extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class BiomeGenCrag extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public class BiomeGenDeadForestSnow extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -49,7 +49,8 @@ public class BiomeGenDeadSwamp extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,7 +61,8 @@ public class BiomeGenDeciduousForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public class BiomeGenDunes extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public class BiomeGenField extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,8 @@ public class BiomeGenFieldForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class BiomeGenFrostForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ public class BiomeGenGarden extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class BiomeGenGlacier extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,8 @@ public class BiomeGenGrassland extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,8 @@ public class BiomeGenGrove extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@ public class BiomeGenHeathland extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class BiomeGenHighland extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,7 +41,8 @@ public class BiomeGenHotSprings extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,8 @@ public class BiomeGenIcyHills extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,8 @@ public class BiomeGenJadeCliffs extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,8 @@ public class BiomeGenLushSwamp extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@ public class BiomeGenMangrove extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,8 @@ public class BiomeGenMapleWoods extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -47,7 +47,8 @@ public class BiomeGenMeadow extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class BiomeGenMeadowForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@ public class BiomeGenMesa extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,8 @@ public class BiomeGenMoor extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -52,7 +52,8 @@ public class BiomeGenMountain extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,8 @@ public class BiomeGenOasis extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,8 @@ public class BiomeGenOrchard extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,8 @@ public class BiomeGenOutback extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,8 @@ public class BiomeGenPasture extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class BiomeGenPastureMeadow extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -39,7 +39,8 @@ public class BiomeGenPastureThin extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -38,7 +38,8 @@ public class BiomeGenPolar extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,7 +44,8 @@ public class BiomeGenPrairie extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,8 @@ public class BiomeGenQuagmire extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,7 +48,8 @@ public class BiomeGenRainforest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ public class BiomeGenRedwoodForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class BiomeGenSavanna extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class BiomeGenSavannaPlateau extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,8 @@ public class BiomeGenScrubland extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,8 @@ public class BiomeGenSeasonalForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,8 @@ public class BiomeGenSeasonalSpruceForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class BiomeGenShrubland extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class BiomeGenShrublandForest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,7 +75,8 @@ public class BiomeGenSilkglades extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,8 @@ public class BiomeGenSludgepit extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 10, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,8 @@ public class BiomeGenSpruceWoods extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,8 @@ public class BiomeGenSteppe extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 2, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -76,7 +76,8 @@ public class BiomeGenTemperateRainforest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,8 @@ public class BiomeGenTimber extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,8 @@ public class BiomeGenTimberThin extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,8 @@ public class BiomeGenTropicalRainforest extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,8 @@ public class BiomeGenTropics extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 6, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -42,7 +42,8 @@ public class BiomeGenTundra extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,8 @@ public class BiomeGenWoodland extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -33,7 +33,8 @@ public class BiomeGenOceanAbyss extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class BiomeGenOceanCoral extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,7 +36,8 @@ public class BiomeGenOceanKelp extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 12, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -65,7 +65,8 @@ public class BiomeGenForestNew extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,7 +50,8 @@ public class BiomeGenHillsNew extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
par1World.setBlock(var7, var8, var9, Block.oreEmerald.blockID, 0, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,8 @@ public class BiomeGenPlainsNew extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 4, 2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,7 +53,8 @@ public class BiomeGenTaigaNew extends BiomeGenBase
|
||||||
int var9 = par4 + par2Random.nextInt(16);
|
int var9 = par4 + par2Random.nextInt(16);
|
||||||
int var10 = par1World.getBlockId(var7, var8, var9);
|
int var10 = par1World.getBlockId(var7, var8, var9);
|
||||||
|
|
||||||
if (Block.blocksList[var10].isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
Block block = Block.blocksList[var10];
|
||||||
|
if (block != null && block.isGenMineableReplaceable(par1World, var7, var8, var9, Block.stone.blockID))
|
||||||
{
|
{
|
||||||
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
par1World.setBlock(var7, var8, var9, Blocks.amethystOre.get().blockID, 8, 2);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue