Fix for iridium not spawning in stone.
This commit is contained in:
parent
4ac134ef26
commit
5978b31dfc
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue