Add a config option to disable deeps portal gen
parent
cdfe13d662
commit
4113d05b04
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue