mirror of
https://github.com/GTNewHorizons/Avaritia.git
synced 2026-10-26 14:23:51 +00:00
add clarified loader check (#84)
Co-authored-by: Martin Robertz <dream-master@gmx.net>
This commit is contained in:
1 parent
59d9cafe1e
commit
fe88f453a5
1 file changed
+2
-4
@@ -33,6 +33,7 @@ public class Compat {
|
||||
public static boolean exu = false;
|
||||
public static boolean ic2 = false;
|
||||
public static boolean gt = false;
|
||||
public static boolean gt5unh = false;
|
||||
public static boolean botan = false;
|
||||
public static boolean blood = false;
|
||||
public static boolean bigReactors = false;
|
||||
@@ -52,11 +53,8 @@ public class Compat {
|
||||
ae2 = Loader.isModLoaded("appliedenergistics2") && Config.ae2;
|
||||
exu = Loader.isModLoaded("ExtraUtilities") && Config.exu;
|
||||
ic2 = Loader.isModLoaded("IC2") && Config.ic2;
|
||||
// NOTE: This will only work with gt5 unless you add ` && !Loader.isModLoaded("gregapi")`.
|
||||
// This doesn't cause errors with gt6 now, but it might if anyone plans on using it specifically as a *gt5*
|
||||
// check
|
||||
// Also if you want a GTNH *specific* feature to have compat, use new modid gregtech_nh.
|
||||
gt = Loader.isModLoaded("gregtech") && Config.gt;
|
||||
gt5unh = Loader.isModLoaded("gregtech_nh") && Config.gt;
|
||||
botan = Loader.isModLoaded("Botania") && Config.botan;
|
||||
blood = Loader.isModLoaded("AWWayofTime") && Config.blood;
|
||||
bigReactors = Loader.isModLoaded("BigReactors") && Config.bigReactors;
|
||||
|
||||
Reference in new issue
Block a user