Skip to content

Commit

Permalink
add option to not generate slime islands in dim 0
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Sep 16, 2013
1 parent 412c5a3 commit ccf49b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/tconstruct/compat/dimensions/dimblacklist.java
Expand Up @@ -26,6 +26,8 @@ public static void getbaddimensions(){
public static boolean isDimInBlacklist(int dim){
if (dim<0)
return false;
if (dim==0)
return PHConstruct.slimeIslGenDim0;
if(PHConstruct.slimeIslGenDim0Only && dim != 0){
return false;
}
Expand Down
4 changes: 2 additions & 2 deletions src/tconstruct/util/PHConstruct.java
Expand Up @@ -2,7 +2,6 @@

import java.io.File;
import java.io.IOException;

import net.minecraftforge.common.*;

public class PHConstruct
Expand Down Expand Up @@ -360,7 +359,7 @@ public static void initProps (File location)
//dimension blacklist
cfgDimBlackList = config.get("DimBlackList", "SlimeIslandDimBlacklist",new int[]{}).getIntList();
slimeIslGenDim0Only = config.get("DimBlackList","GenerateSlimeIslandInDim0Only" , false).getBoolean(false);

slimeIslGenDim0 = config.get("DimBlackList", "slimeIslGenDim0", true).getBoolean(true);
//Addon stuff
isCleaverTwoHanded = config.get("Battlegear", "Can Cleavers have shields", true).getBoolean(true);

Expand Down Expand Up @@ -684,6 +683,7 @@ public static void initProps (File location)
//dimensionblacklist
public static boolean slimeIslGenDim0Only;
public static int[] cfgDimBlackList;
public static boolean slimeIslGenDim0;

//Addon stuff
public static boolean isCleaverTwoHanded;
Expand Down

0 comments on commit ccf49b1

Please sign in to comment.