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);
|
zPos = chunkZ * 16 + random.nextInt(16);
|
||||||
BlockPos pos = new BlockPos(xPos, yPos, zPos);
|
BlockPos pos = new BlockPos(xPos, yPos, zPos);
|
||||||
if(ore.blockNiceName.equalsIgnoreCase("iridium")){ //Work around for iridium
|
if(ore.blockNiceName.equalsIgnoreCase("iridium")){ //Work around for iridium
|
||||||
|
if(world.getBlockState(pos).getBlock().isReplaceableOreGen(world.getBlockState(pos), world, pos, predicate)){
|
||||||
world.setBlockState(pos, ore.state);
|
world.setBlockState(pos, ore.state);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
worldGenMinable.generate(world, random, pos);
|
worldGenMinable.generate(world, random, pos);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue