aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
diff options
context:
space:
mode:
authorAlkalus <Draknyte1@hotmail.com>2020-04-14 19:35:14 +0100
committerAlkalus <Draknyte1@hotmail.com>2020-04-14 19:35:14 +0100
commit45ca80fa77d081c500cc6df0799a2e824912fd62 (patch)
tree7ef26a8acf4573c6c7ee77d9983a724fa1ce26da /src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
parente42c71394ca8e9b82a47ca8b35aad2d19ff16ac3 (diff)
downloadGT5-Unofficial-45ca80fa77d081c500cc6df0799a2e824912fd62.tar.gz
GT5-Unofficial-45ca80fa77d081c500cc6df0799a2e824912fd62.tar.bz2
GT5-Unofficial-45ca80fa77d081c500cc6df0799a2e824912fd62.zip
$ Added recipe hashing to prevent unwanted recipe changes.
$ Made certain TileEntities blacklisted against the World accelerator in both GT++ & GTNH.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
index 007f390112..56d11520d0 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_Plates.java
@@ -3,18 +3,16 @@ package gtPlusPlus.xmod.gregtech.loaders;
import java.util.HashSet;
import java.util.Set;
-import net.minecraft.item.ItemStack;
-
import gregtech.api.GregTech_API;
import gregtech.api.enums.GT_Values;
import gregtech.api.enums.ItemList;
import gregtech.api.util.GT_Recipe;
-
import gtPlusPlus.api.interfaces.RunnableWithInfo;
import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.material.Material;
import gtPlusPlus.core.material.MaterialGenerator;
import gtPlusPlus.core.util.minecraft.ItemUtils;
+import net.minecraft.item.ItemStack;
public class RecipeGen_Plates extends RecipeGen_Base {
@@ -126,14 +124,7 @@ public class RecipeGen_Plates extends RecipeGen_Base {
}
public static boolean addBenderRecipe(final ItemStack aInput1, final ItemStack aOutput1, int aDuration, final int aEUt) {
- if ((aInput1 == null) || (aOutput1 == null)) {
- return false;
- }
- if ((aDuration = GregTech_API.sRecipeFile.get("bender", aInput1, aDuration)) <= 0) {
- return false;
- }
- new GT_Recipe(aEUt, aDuration, aInput1, aOutput1);
- return true;
+ return GT_Values.RA.addBenderRecipe(aInput1, aOutput1, aDuration, aEUt);
}
public static boolean addExtruderRecipe(final ItemStack aInput, final ItemStack aShape, final ItemStack aOutput, int aDuration, final int aEUt) {