Add a safety check to close #619

This commit is contained in:
modmuss50 2016-06-04 11:14:34 +01:00
parent 8a8fd59cc1
commit d3bd2bf70b

View file

@ -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");
}
}
}
}