diff options
author | Martin Robertz <dream-master@gmx.net> | 2021-10-18 11:36:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 11:36:34 +0200 |
commit | 9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4 (patch) | |
tree | 8683e58190fa0c6cca1412b0ed12b48ef5ec974e /src/main/java/gregtech/api/util/GT_Recipe.java | |
parent | 5aa5c7d77309a70eb4f637fb265f531ff4e8375e (diff) | |
parent | 4d91ffd264c10ba82d767403e200347c74b8338d (diff) | |
download | GT5-Unofficial-9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4.tar.gz GT5-Unofficial-9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4.tar.bz2 GT5-Unofficial-9fb6fb9e5b17d08e4dae4e811ca91715ce7685e4.zip |
Merge pull request #686 from GTNewHorizons/patches-g
Various minor optimizations
Diffstat (limited to 'src/main/java/gregtech/api/util/GT_Recipe.java')
-rw-r--r-- | src/main/java/gregtech/api/util/GT_Recipe.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/gregtech/api/util/GT_Recipe.java b/src/main/java/gregtech/api/util/GT_Recipe.java index bcd3c193de..6130adfaef 100644 --- a/src/main/java/gregtech/api/util/GT_Recipe.java +++ b/src/main/java/gregtech/api/util/GT_Recipe.java @@ -800,7 +800,7 @@ public class GT_Recipe implements Comparable<GT_Recipe> { * @return if this Item is a valid Input for any for the Recipes */ public boolean containsInput(ItemStack aStack) { - return aStack != null && (mRecipeItemMap.containsKey(new GT_ItemStack(aStack)) || mRecipeItemMap.containsKey(new GT_ItemStack(GT_Utility.copyMetaData(W, aStack)))); + return aStack != null && (mRecipeItemMap.containsKey(new GT_ItemStack(aStack)) || mRecipeItemMap.containsKey(new GT_ItemStack(aStack, true))); } /** @@ -886,7 +886,7 @@ public class GT_Recipe implements Comparable<GT_Recipe> { if (tRecipes != null) for (GT_Recipe tRecipe : tRecipes) if (!tRecipe.mFakeRecipe && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) return tRecipe.mEnabled && aVoltage * mAmperage >= tRecipe.mEUt ? tRecipe : null; - tRecipes = mRecipeItemMap.get(new GT_ItemStack(GT_Utility.copyMetaData(W, tStack))); + tRecipes = mRecipeItemMap.get(new GT_ItemStack(tStack, true)); if (tRecipes != null) for (GT_Recipe tRecipe : tRecipes) if (!tRecipe.mFakeRecipe && tRecipe.isRecipeInputEqual(false, aDontCheckStackSizes, aFluids, aInputs)) return tRecipe.mEnabled && aVoltage * mAmperage >= tRecipe.mEUt ? tRecipe : null; |