Skip to content

Commit

Permalink
Safety net when generating surface gravel ores
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Oct 6, 2014
1 parent bb65293 commit 6420d2a
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -41,6 +41,9 @@ public void onDecorateEvent (Decorate e)

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)
{
Expand Down

0 comments on commit 6420d2a

Please sign in to comment.