aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dependencies.gradle6
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java23
-rw-r--r--src/main/java/com/github/bartimaeusnek/bartworks/system/material/GT_Enhancement/PlatinumSludgeOverHaul.java27
3 files changed, 3 insertions, 53 deletions
diff --git a/dependencies.gradle b/dependencies.gradle
index 9111782b83..0e76c84eaf 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -6,7 +6,7 @@ dependencies {
compile("com.github.GTNewHorizons:TecTech:5.0.67:dev")
compile("com.github.GTNewHorizons:NotEnoughItems:2.3.20-GTNH:dev")
compile("com.github.GTNewHorizons:TinkersConstruct:1.9.11-GTNH:dev")
- compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.6:dev")
+ compile("com.github.GTNewHorizons:CodeChickenLib:1.1.5.7:dev")
compile("com.github.GTNewHorizons:CodeChickenCore:1.1.7:dev")
compile("com.github.GTNewHorizons:Galacticraft:3.0.63-GTNH:dev")
compile("com.github.GTNewHorizons:ModularUI:1.0.38:dev")
@@ -44,6 +44,6 @@ dependencies {
compileOnly("com.github.GTNewHorizons:ProjectRed:4.7.9-GTNH:dev") {
transitive = false
}
- runtime("com.github.GTNewHorizons:Yamcl:0.5.84:dev")
- runtime("com.github.GTNewHorizons:ironchest:6.0.71:dev") //needed for Galacticraft
+ runtimeOnly("com.github.GTNewHorizons:Yamcl:0.5.84:dev")
+ runtimeOnly("com.github.GTNewHorizons:ironchest:6.0.71:dev") //needed for Galacticraft
}
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java
index 71eb970abb..c272985aa4 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/common/loaders/StaticRecipeChangeLoaders.java
@@ -49,7 +49,6 @@ import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Recipe.GT_Recipe_Map;
import gregtech.api.util.GT_Utility;
import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
import java.util.*;
import java.util.stream.Collectors;
import net.minecraft.init.Blocks;
@@ -59,7 +58,6 @@ import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
import org.apache.commons.lang3.StringUtils;
-import org.apache.commons.lang3.reflect.FieldUtils;
public class StaticRecipeChangeLoaders {
@@ -697,27 +695,6 @@ public class StaticRecipeChangeLoaders {
|| GT_Utility.areStacksEqual(input, ItemList.Block_Powderbarrel.get(1L)));
}
- public static void patchEBFMapForCircuitUnification() {
- Field mUsualInputCount = FieldUtils.getField(GT_Recipe.GT_Recipe_Map.class, "mUsualInputCount", true);
- mUsualInputCount.setAccessible(true);
-
- try {
- Field modifiersField = Field.class.getDeclaredField("modifiers");
- modifiersField.setAccessible(true);
- modifiersField.setInt(mUsualInputCount, mUsualInputCount.getModifiers() & ~Modifier.FINAL);
- mUsualInputCount.setInt(GT_Recipe.GT_Recipe_Map.sBlastRecipes, 3);
- } catch (IllegalAccessException | NoSuchFieldException e) {
- e.printStackTrace();
- }
- }
-
- public static void synchroniseCircuitUseMulti() {
- GT_Recipe.GT_Recipe_Map[] gt_recipe_maps = {
- GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes, GT_Recipe.GT_Recipe_Map.sBlastRecipes
- };
- getRecipesByCircuitID(gt_recipe_maps).forEach(StaticRecipeChangeLoaders::transformCircuitRecipes);
- }
-
private static int getBlastLogic(GT_Recipe recipe) {
int ret = 0;
diff --git a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/GT_Enhancement/PlatinumSludgeOverHaul.java b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/GT_Enhancement/PlatinumSludgeOverHaul.java
index cb9084e608..92c6dc696c 100644
--- a/src/main/java/com/github/bartimaeusnek/bartworks/system/material/GT_Enhancement/PlatinumSludgeOverHaul.java
+++ b/src/main/java/com/github/bartimaeusnek/bartworks/system/material/GT_Enhancement/PlatinumSludgeOverHaul.java
@@ -48,7 +48,6 @@ import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
import gregtech.common.blocks.GT_Block_Ores_Abstract;
import java.lang.reflect.Field;
-import java.lang.reflect.Modifier;
import java.util.*;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
@@ -957,32 +956,6 @@ public class PlatinumSludgeOverHaul {
if (in == null) in = CachedReflectionUtils.getField(recipe.getClass(), inputItemName);
if (in == null) return;
- // directly copied from the apache commons collection, cause GTNH had problems with that particular function for
- // some reason?
- // this part here is NOT MIT LICENSED BUT LICSENSED UNDER THE Apache License, Version 2.0!
- try {
- if (Modifier.isFinal(in.getModifiers())) {
- // Do all JREs implement Field with a private ivar called "modifiers"?
- Field modifiersField = Field.class.getDeclaredField("modifiers");
- boolean doForceAccess = !modifiersField.isAccessible();
- if (doForceAccess) {
- modifiersField.setAccessible(true);
- }
- try {
- modifiersField.setInt(in, in.getModifiers() & ~Modifier.FINAL);
- } finally {
- if (doForceAccess) {
- modifiersField.setAccessible(false);
- }
- }
- }
- } catch (NoSuchFieldException ignored) {
- // The field class contains always a modifiers field
- } catch (IllegalAccessException ignored) {
- // The modifiers field is made accessible
- }
- // END OF APACHE COMMONS COLLECTION COPY
-
Object input;
try {
input = in.get(obj);