mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 10:34:40 +00:00
Compat with GT change (#175)
* Compat with GT change * update gradle+bs+deps --------- Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
1 parent
3b1b1af852
commit
d790afc047
7 files changed
+61
-42
No files matched your search
@@ -12,6 +12,13 @@ import cpw.mods.fml.common.Loader;
|
||||
|
||||
public final class ModAndClassUtil {
|
||||
|
||||
/**
|
||||
* GTNH fork of GregTech5 Unofficial
|
||||
*/
|
||||
public static boolean GT5NH = false;
|
||||
/**
|
||||
* GregTech5 / GregTech5 Unofficial (Blood-Asp's "official" GT5u)
|
||||
*/
|
||||
public static boolean GT5 = false;
|
||||
public static boolean GT6 = false;
|
||||
public static boolean EC2 = false;
|
||||
@@ -119,7 +126,14 @@ public final class ModAndClassUtil {
|
||||
isTypeFilter = false;
|
||||
}
|
||||
|
||||
if (Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi")) GT5 = true;
|
||||
if (Loader.isModLoaded("gregtech") && !Loader.isModLoaded("gregapi")) {
|
||||
try {
|
||||
Class.forName("gregtech.api.recipe.RecipeMap");
|
||||
GT5NH = true;
|
||||
} catch (ClassNotFoundException e) {
|
||||
GT5 = true;
|
||||
}
|
||||
}
|
||||
if (Loader.isModLoaded("gregapi") && Loader.isModLoaded("gregapi_post")) GT6 = true;
|
||||
if (Loader.isModLoaded("extracells")) EC2 = true;
|
||||
if (Loader.isModLoaded("EnderIO")) EIO = true;
|
||||
|
||||
Reference in new issue
Block a user