Merge pull request #167 from progwml6/master

add config option to only generate slime islands in the overworld
This commit is contained in:
Zach committed 2013-09-08 22:01:36 -07:00
commit 17dfd0e45e
2 files changed
+7

No files matched your search

@@ -22,6 +22,9 @@ public static void getbaddimensions(){
public static boolean isDimInBlacklist(int dim){
if (dim<0)
return false;
if(PHConstruct.slimeIslGenDim0Only && dim != 0){
return false;
}
for (int len = 0;len< blacklist.size(); len++){
if (blacklist.get(len) == dim)
return false;
+4
View File
@@ -356,8 +356,11 @@ public class PHConstruct
Property conTexMode = config.get("Looks", "Connected Textures Enabled", true);
conTexMode.comment = "0 = disabled, 1 = enabled, 2 = enabled + ignore stained glass meta";
connectedTexturesMode = conTexMode.getInt(2);
//dimension blacklist
cfgDimBlackList = config.get("DimBlackList", "SlimeIslandDimBlacklist",new int[]{}).getIntList();
slimeIslGenDim0Only = config.get("DimBlackList","GenerateSlimeIslandInDim0Only" , false).getBoolean(false);
/* Save the configuration file */
config.save();
@@ -676,5 +679,6 @@ public class PHConstruct
public static int connectedTexturesMode;
public static File cfglocation;
//dimensionblacklist
public static boolean slimeIslGenDim0Only;
public static int[] cfgDimBlackList;
}