diff options
| author | Blood-Asp <bloodasphendrik@gmail.com> | 2017-05-31 18:10:11 +0200 | 
|---|---|---|
| committer | Blood-Asp <bloodasphendrik@gmail.com> | 2017-05-31 18:10:11 +0200 | 
| commit | c28a8ceb7885c89d5812cc9ef30f3e7324078d9b (patch) | |
| tree | 9bf5b9127282077ac4241faad5c7ba0b164afb1f | |
| parent | 40304ed2f583e6d6a99a0115056d2135b510602d (diff) | |
| download | GT5-Unofficial-c28a8ceb7885c89d5812cc9ef30f3e7324078d9b.tar.gz GT5-Unofficial-c28a8ceb7885c89d5812cc9ef30f3e7324078d9b.tar.bz2 GT5-Unofficial-c28a8ceb7885c89d5812cc9ef30f3e7324078d9b.zip | |
Catch broken items on recipe move
| -rw-r--r-- | src/main/java/gregtech/api/util/GT_ModHandler.java | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/main/java/gregtech/api/util/GT_ModHandler.java b/src/main/java/gregtech/api/util/GT_ModHandler.java index 62c8714807..daa1b67069 100644 --- a/src/main/java/gregtech/api/util/GT_ModHandler.java +++ b/src/main/java/gregtech/api/util/GT_ModHandler.java @@ -682,8 +682,8 @@ public class GT_ModHandler {                  for (ItemStack tStack : ((IRecipeInput) tRecipe.getKey()).getInputs()) {                      if (GT_Utility.isStackValid(tStack)) {                          if (aAddGTRecipe && (aGTRecipeMap.findRecipe(null, false, Long.MAX_VALUE, null, tStack) == null)) { +                        	try{                              if (aExcludeGTIC2Items && ((tStack.getUnlocalizedName().contains("gt.metaitem.01") || tStack.getUnlocalizedName().contains("gt.blockores") || tStack.getUnlocalizedName().contains("ic2.itemCrushed") || tStack.getUnlocalizedName().contains("ic2.itemPurifiedCrushed")))) continue; -                            try{                              switch (aGTRecipeMap.mUnlocalizedName) {                                  case "gt.recipe.macerator":                                      aGTRecipeMap.addRecipe(true, new ItemStack[]{GT_Utility.copyAmount(((IRecipeInput) tRecipe.getKey()).getAmount(), tStack)}, (ItemStack[]) ((RecipeOutput) tRecipe.getValue()).items.toArray(), null, null, null, null, 300, 2, 0); | 
