Add a config option to disable deeps portal gen

dev
Arona Jones 2015-10-01 07:43:05 +01:00
parent cdfe13d662
commit 4113d05b04
2 changed files with 3 additions and 1 deletions

View File

@ -51,6 +51,7 @@ public class ConfigWorldGen
public static int slateCluster;
public static boolean deepsDimensionEnabled;
public static boolean deepsPortalGenEnabled;
public static void initialize(File configFile)
{
@ -63,6 +64,7 @@ public class ConfigWorldGen
// Generation
generationEnabled = config.get(CATEGORY_GEN_OPTIONS, "ALL SC2 World Gen, everywhere", true).getBoolean(true);
deepsGenerationEnabled = config.get(CATEGORY_GEN_OPTIONS, "Registration of the Deeps Dimension", true).getBoolean(true);
deepsPortalGenEnabled = config.get(CATEGORY_GEN_OPTIONS, "Generation of Deeps portals", true).getBoolean(true);
overworldGenerationEnabled = config.get(CATEGORY_GEN_OPTIONS, "All Overworld Generation", true).getBoolean(true);
netherGenerationEnabled = config.get(CATEGORY_GEN_OPTIONS, "All Nether Generation", true).getBoolean(true);

View File

@ -105,7 +105,7 @@ public class WorldGenSteamcraft implements IWorldGenerator
}
}
if (random.nextInt(30) == 0)
if (random.nextInt(30) == 0 && ConfigWorldGen.deepsPortalGenEnabled)
{
int X = chunkX + random.nextInt(16);
int Z = chunkZ + random.nextInt(16);