Detect GT++ and enable materials for it.
This commit is contained in:
parent
8ef12119e0
commit
13180eb4a4
3 changed files with 5 additions and 2 deletions
|
@ -129,6 +129,7 @@ public class GT_Mod implements IGT_Mod {
|
|||
GregTech_API.mIC2Classic = Loader.isModLoaded("IC2-Classic-Spmod");
|
||||
GregTech_API.mMagneticraft = Loader.isModLoaded("Magneticraft");
|
||||
GregTech_API.mImmersiveEngineering = Loader.isModLoaded("ImmersiveEngineering");
|
||||
GregTech_API.mGTPlusPlus = Loader.isModLoaded("miscutils");
|
||||
GT_Log.mLogFile = new File(aEvent.getModConfigurationDirectory().getParentFile(), "logs/GregTech.log");
|
||||
if (!GT_Log.mLogFile.exists()) {
|
||||
try {
|
||||
|
|
|
@ -195,6 +195,7 @@ public class GregTech_API {
|
|||
public static boolean mIC2Classic = false;
|
||||
public static boolean mMagneticraft = false;
|
||||
public static boolean mImmersiveEngineering = false;
|
||||
public static boolean mGTPlusPlus = false;
|
||||
private static final String aTextIC2Lower = MOD_ID_IC2.toLowerCase(Locale.ENGLISH);
|
||||
/**
|
||||
* Getting assigned by the Mod loading
|
||||
|
|
|
@ -675,7 +675,7 @@ public enum OrePrefixes {
|
|||
if (!enableUnusedTriplePlates && !(aMaterial == Materials.Paper)) plateTriple.mDisabledItems.add(aMaterial);
|
||||
if (!enableUnusedQuadPlates && !(aMaterial == Materials.Paper)) plateQuadruple.mDisabledItems.add(aMaterial);
|
||||
if (!enableUnusedQuinPlates && !(aMaterial == Materials.Paper)) plateQuintuple.mDisabledItems.add(aMaterial);
|
||||
if (!enableUnusedDensePlates && !(aMaterial == Materials.Iron || aMaterial == Materials.Copper || aMaterial == Materials.Lead || aMaterial == Materials.Paper))
|
||||
if (!(enableUnusedDensePlates || GregTech_API.mGTPlusPlus) && !(aMaterial == Materials.Iron || aMaterial == Materials.Copper || aMaterial == Materials.Lead || aMaterial == Materials.Paper))
|
||||
plateDense.mDisabledItems.add(aMaterial);
|
||||
//Rotors
|
||||
if (!enableUnusedRotors && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome || aMaterial == Materials.Tin || aMaterial == Materials.Osmium ||
|
||||
|
@ -686,7 +686,8 @@ public enum OrePrefixes {
|
|||
if (!enableUnusedRings && !(aMaterial == Materials.Titanium || aMaterial == Materials.Chrome || aMaterial == Materials.Iron || aMaterial == Materials.Tin ||
|
||||
aMaterial == Materials.Osmium || aMaterial == Materials.Iridium || aMaterial == Materials.Bronze || aMaterial == Materials.WroughtIron ||
|
||||
aMaterial == Materials.Steel || aMaterial == Materials.StainlessSteel || aMaterial == Materials.PigIron || aMaterial == Materials.TungstenSteel ||
|
||||
aMaterial == Materials.Rubber || aMaterial == Materials.HSSE || aMaterial == Materials.Neutronium || aMaterial == Materials.HSSG || aMaterial == Materials.Aluminium))
|
||||
aMaterial == Materials.Rubber || aMaterial == Materials.HSSE || aMaterial == Materials.Neutronium || aMaterial == Materials.HSSG || aMaterial == Materials.Aluminium ||
|
||||
aMaterial == Materials.Invar || aMaterial == Materials.Brass))
|
||||
ring.mDisabledItems.add(aMaterial);
|
||||
//Foil
|
||||
if (!enableUnusedFoil && !(aMaterial == Materials.Zinc || aMaterial == Materials.Aluminium || aMaterial == Materials.Silicon || aMaterial == Materials.Gold ||
|
||||
|
|
Loading…
Reference in a new issue