-
Notifications
You must be signed in to change notification settings - Fork 755
/
DimensionBlacklist.java
61 lines (54 loc) · 1.67 KB
/
DimensionBlacklist.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package tconstruct.util.config;
import java.util.ArrayList;
public class DimensionBlacklist
{
public static ArrayList<Integer> blacklist = new ArrayList<Integer>();
public static ArrayList<Integer> nopool = new ArrayList<Integer>();
public static void getbaddimensions ()
{
blacklist.add(1);
if (TwilightForestConfig.twilightForestDimensionID != -100)
{
blacklist.add(TwilightForestConfig.twilightForestDimensionID);
}
if (PHConstruct.cfgDimBlackList.length > 0)
{
for (int numdim = 0; numdim < PHConstruct.cfgDimBlackList.length; numdim++)
{
blacklist.add(PHConstruct.cfgDimBlackList[numdim]);
}
}
if (BOPConfig.promisedLandDimensionID != -100)
{
nopool.add(BOPConfig.promisedLandDimensionID);
}
}
public static boolean isDimInBlacklist (int dim)
{
if (dim < 0)
return false;
if (dim == 0)
return PHConstruct.slimeIslGenDim0;
if (PHConstruct.slimeIslGenDim0Only && dim != 0)
{
return false;
}
for (int len = 0; len < blacklist.size(); len++)
{
if (blacklist.get(len) == dim)
return false;
//TConstruct.logger.info("diminblist +" + blacklist.get(len));
}
return true;
}
public static boolean isDimNoPool (int dim)
{
for (int len = 0; len < nopool.size(); len++)
{
if (nopool.get(len) == dim)
//TConstruct.logger.info("DimNoPool "+ nopool.get(len));
return true;
}
return false;
}
}