Fix issues with getting item stacks, Closes #940 and fixes a bunch of other stuff
This commit is contained in:
parent
d01b7d559d
commit
2b546b1991
1 changed files with 9 additions and 4 deletions
|
@ -226,11 +226,16 @@ public class TechRebornWorldGen implements IWorldGenerator {
|
|||
yPos = 10 + random.nextInt(ore.maxYHeight - ore.minYHeight);
|
||||
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);
|
||||
} else {
|
||||
try {
|
||||
worldGenMinable.generate(world, random, pos);
|
||||
} catch (ArrayIndexOutOfBoundsException e) {
|
||||
Core.logHelper.error("Something bad is happening during world gen the ore " + ore.blockNiceName + " caused a crash when generating. Report this to the TechReborn devs with a log");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue