blob: 3dae546efcc4be44a8c49e6be7d5a6a98bf4aebc (
plain)
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
62
63
64
65
66
67
68
|
package miscutil.core.lib;
import miscutil.core.util.Utils;
import cpw.mods.fml.common.Loader;
public class LoadedMods {
//Initialize Variables
public static boolean Gregtech = false;
public static boolean EnderIO = false;
public static boolean Big_Reactors = false;
public static boolean IndustrialCraft2 = false;
public static boolean Simply_Jetpacks = false;
public static boolean RFTools = false;
public static boolean Thaumcraft = false;
public static boolean Extra_Utils = false;
public static boolean PneumaticCraft = false;
public static boolean MorePlanets = false;
private static int totalMods;
public static void checkLoaded(){
Utils.LOG_INFO("Looking for optional mod prereqs.");
if (Loader.isModLoaded("gregtech") == true ){
Gregtech = true;
totalMods++;
}
if (Loader.isModLoaded("EnderIO") == true){
EnderIO = true;
totalMods++;
}
if (Loader.isModLoaded("BigReactors") == true){
Big_Reactors = true;
totalMods++;
}
if (Loader.isModLoaded("IC2") == true){
IndustrialCraft2 = true;
totalMods++;
}
if (Loader.isModLoaded("simplyjetpacks") == true){
Simply_Jetpacks = true;
totalMods++;
}
if (Loader.isModLoaded("rftools") == true){
RFTools = true;
totalMods++;
}
if (Loader.isModLoaded("Thaumcraft") == true){
Thaumcraft = true;
totalMods++;
}
if (Loader.isModLoaded("ExtraUtilities") == true){
Extra_Utils = true;
totalMods++;
}
if (Loader.isModLoaded("PneumaticCraft") == true){
PneumaticCraft = true;
totalMods++;
}
if (Loader.isModLoaded("MorePlanet") == true){
MorePlanets = true;
totalMods++;
}
Utils.LOG_INFO("Content found for "+totalMods+" mods");
}
}
|