mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-11 07:47:55 +00:00
fc terminal add type filter (#98)
* fc terminal add type filter * Update dependencies.gradle --------- Co-authored-by: Raven Szewczyk <git@eigenraven.me>
This commit is contained in:
1 parent
c92f8bdd7c
commit
b9724d9369
10 files changed
+70
-1
No files matched your search
@@ -27,6 +27,7 @@ public final class ModAndClassUtil {
|
||||
public static boolean WAILA = false;
|
||||
public static boolean AVARITIA = false;
|
||||
public static boolean isV2;
|
||||
public static boolean isTypeFilter;
|
||||
public static boolean isDoubleButton;
|
||||
public static boolean isSaveText;
|
||||
public static boolean isSearchStringTooltip;
|
||||
@@ -111,6 +112,13 @@ public final class ModAndClassUtil {
|
||||
} catch (ClassNotFoundException e) {
|
||||
isV2 = false;
|
||||
}
|
||||
try {
|
||||
Field filters = Class.forName("appeng.client.me.ItemRepo").getDeclaredField("filters");
|
||||
if (filters == null) isTypeFilter = false;
|
||||
isTypeFilter = true;
|
||||
} catch (ClassNotFoundException | NoSuchFieldException e) {
|
||||
isTypeFilter = false;
|
||||
}
|
||||
|
||||
try {
|
||||
essentiaGas = Class.forName("thaumicenergistics.common.fluids.GaseousEssentia");
|
||||
|
||||
Reference in new issue
Block a user