add a healthy 1 sec delay between JEI transfer updates to avoid horrible

GC pressure
This commit is contained in:
PrototypeTrousers
2022-10-25 22:32:53 -03:00
parent b2847677ed
commit 9bcf45b7e2
6 changed files with 54 additions and 26 deletions
+2 -1
View File
@@ -146,6 +146,7 @@ public class Platform {
private static final ItemComparisonHelper ITEM_COMPARISON_HELPER = new ItemComparisonHelper();
private static final P2PHelper P2P_HELPER = new P2PHelper();
private static Method reflectGTgetMTE;
public static final boolean GTLoaded = isModLoaded("gregtech");
public static ItemComparisonHelper itemComparisons() {
return ITEM_COMPARISON_HELPER;
@@ -1416,7 +1417,7 @@ public class Platform {
//consider methods below moving to a compability class
public static boolean isGTDamageableItem(Item item) {
return (isModLoaded("gregtech") && item instanceof IToolItem);
return ((GTLoaded) && item instanceof IToolItem);
}
public static MetaTileEntity getMetaTileEntity(IBlockAccess world, BlockPos pos) {