Add a safety check to close #619
This commit is contained in:
parent
8a8fd59cc1
commit
d3bd2bf70b
1 changed files with 6 additions and 1 deletions
|
@ -227,7 +227,12 @@ 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);
|
||||
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