diff options
| author | Technus <daniel112092@gmail.com> | 2016-11-22 21:53:48 +0100 |
|---|---|---|
| committer | Technus <daniel112092@gmail.com> | 2016-11-22 21:53:48 +0100 |
| commit | 2b854dbe1d84fe1c93711d6189c235131343ec8e (patch) | |
| tree | a193f861770ecd79e4ffe6993f2cafd8fb361c9f /src/main/java/gregtech/nei | |
| parent | 18be8533663687315d6be7a301699bc25e8e364c (diff) | |
| download | GT5-Unofficial-2b854dbe1d84fe1c93711d6189c235131343ec8e.tar.gz GT5-Unofficial-2b854dbe1d84fe1c93711d6189c235131343ec8e.tar.bz2 GT5-Unofficial-2b854dbe1d84fe1c93711d6189c235131343ec8e.zip | |
no message
Diffstat (limited to 'src/main/java/gregtech/nei')
| -rw-r--r-- | src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java b/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java index c1f0b90ad9..c917bb9e71 100644 --- a/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java +++ b/src/main/java/gregtech/nei/GT_NEI_AssLineHandler.java @@ -67,6 +67,8 @@ public class GT_NEI_AssLineHandler for (GT_Recipe tRecipe : this.mRecipeMap.mRecipeList) { if (!tRecipe.mHidden) { this.arecipes.add(new CachedDefaultRecipe(tRecipe)); + }else{ + this.arecipes.remove(new CachedDefaultRecipe(tRecipe)); } } } else { @@ -103,6 +105,14 @@ public class GT_NEI_AssLineHandler break; } } + }else{ + CachedDefaultRecipe tNEIRecipe = new CachedDefaultRecipe(tRecipe); + for (ItemStack tStack : tResults) { + if (tNEIRecipe.contains(tNEIRecipe.mOutputs, tStack)) { + this.arecipes.remove(tNEIRecipe); + break; + } + } } } CachedDefaultRecipe tNEIRecipe; @@ -137,6 +147,14 @@ public class GT_NEI_AssLineHandler break; } } + }else{ + CachedDefaultRecipe tNEIRecipe = new CachedDefaultRecipe(tRecipe); + for (ItemStack tStack : tInputs) { + if (tNEIRecipe.contains(tNEIRecipe.mInputs, tStack)) { + this.arecipes.remove(tNEIRecipe); + break; + } + } } } CachedDefaultRecipe tNEIRecipe; |
