aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java')
-rw-r--r--src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java
index 1a9031e64a..049fe75d1a 100644
--- a/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java
+++ b/src/main/java/gregtech/loaders/oreprocessing/ProcessingStickLong.java
@@ -50,14 +50,16 @@ public class ProcessingStickLong implements gregtech.api.interfaces.IOreRecipeRe
if (!aMaterial.contains(SubTag.NO_SMASHING)) {
// Bender recipes
{
- GT_Values.RA.stdBuilder()
- .itemInputs(GT_Utility.copyAmount(1L, aStack), GT_Utility.getIntegratedCircuit(1))
- .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L))
- .noFluidInputs()
- .noFluidOutputs()
- .duration(10 * SECONDS)
- .eut(calculateRecipeEU(aMaterial, 16))
- .addTo(sBenderRecipes);
+ if (GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L) != null) {
+ GT_Values.RA.stdBuilder()
+ .itemInputs(GT_Utility.copyAmount(1L, aStack), GT_Utility.getIntegratedCircuit(1))
+ .itemOutputs(GT_OreDictUnificator.get(OrePrefixes.spring, aMaterial, 1L))
+ .noFluidInputs()
+ .noFluidOutputs()
+ .duration(10 * SECONDS)
+ .eut(calculateRecipeEU(aMaterial, 16))
+ .addTo(sBenderRecipes);
+ }
}
if (aMaterial.mUnificatable && (aMaterial.mMaterialInto == aMaterial))