aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/loaders
diff options
context:
space:
mode:
authorAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-06 18:07:22 +0000
committerAlkalus <3060479+draknyte1@users.noreply.github.com>2021-12-06 18:07:22 +0000
commita00d9f9245db7dc0c425044c0aeff84d15092dfd (patch)
treeddbe0c48420891b990688642bb5c155ff9788c23 /src/Java/gtPlusPlus/xmod/gregtech/loaders
parent486aaa9c08a0bfa0cc6b890ae4131d3d90e85f91 (diff)
downloadGT5-Unofficial-a00d9f9245db7dc0c425044c0aeff84d15092dfd.tar.gz
GT5-Unofficial-a00d9f9245db7dc0c425044c0aeff84d15092dfd.tar.bz2
GT5-Unofficial-a00d9f9245db7dc0c425044c0aeff84d15092dfd.zip
Better handling of Material chemical formulae.
Fixed some broken recipes.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/loaders')
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
index 90d7aaa806..a76322e4f4 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/loaders/RecipeGen_MultisUsingFluidInsteadOfCells.java
@@ -151,6 +151,11 @@ public class RecipeGen_MultisUsingFluidInsteadOfCells {
for (int i = 0; i < aOutputFluidsMap.size(); i++) {
aNewFluidOutputs[i] = aOutputFluidsMap.get(i);
}
+
+ if (!ItemUtils.checkForInvalidItems(aNewItemInputs, aNewItemOutputs)) {
+ aInvalidRecipesToConvert++;
+ continue recipe; // Skip this recipe entirely if we find an item we don't like
+ }
// Add Recipe to map
GT_Recipe aNewRecipe = new GTPP_Recipe(