Fix for iridium not spawning in stone.

This commit is contained in:
modmuss50 2017-02-01 17:35:29 +00:00
parent 4ac134ef26
commit 5978b31dfc
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA

View file

@ -227,7 +227,10 @@ public class TechRebornWorldGen implements IWorldGenerator {
zPos = chunkZ * 16 + random.nextInt(16);
BlockPos pos = new BlockPos(xPos, yPos, zPos);
if(ore.blockNiceName.equalsIgnoreCase("iridium")){ //Work around for iridium
world.setBlockState(pos, ore.state);
if(world.getBlockState(pos).getBlock().isReplaceableOreGen(world.getBlockState(pos), world, pos, predicate)){
world.setBlockState(pos, ore.state);
}
} else {
try {
worldGenMinable.generate(world, random, pos);