mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
Safety net when generating surface gravel ores
This commit is contained in:
1 parent
bb652931a6
commit
6420d2a1e1
1 file changed
+3
@@ -41,6 +41,9 @@ public class TerrainGenEventHandler
|
||||
|
||||
private void generateSurfaceOres (Random random, int xChunk, int zChunk, World world)
|
||||
{
|
||||
if(random == null)
|
||||
return;
|
||||
|
||||
int xPos, yPos, zPos;
|
||||
if (PHConstruct.generateIronSurface && random.nextInt(PHConstruct.ironsRarity) == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user