aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGlease <4586901+Glease@users.noreply.github.com>2021-08-22 20:45:01 +0800
committerGitHub <noreply@github.com>2021-08-22 20:45:01 +0800
commitf172d60252ac1b95eda343ebc84b1b9b25ef73bf (patch)
tree7cf1d88d1d0707a436ceb87dbffe0f834ad83775 /src
parent4e430f77a894a12b0306ba0b6b67dae9fd363bf7 (diff)
downloadGT5-Unofficial-f172d60252ac1b95eda343ebc84b1b9b25ef73bf.tar.gz
GT5-Unofficial-f172d60252ac1b95eda343ebc84b1b9b25ef73bf.tar.bz2
GT5-Unofficial-f172d60252ac1b95eda343ebc84b1b9b25ef73bf.zip
Fix OpenComputer microchips related crafting
Diffstat (limited to 'src')
-rw-r--r--src/main/java/gregtech/common/GT_RecipeAdder.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/main/java/gregtech/common/GT_RecipeAdder.java b/src/main/java/gregtech/common/GT_RecipeAdder.java
index 0e421843a9..22c93e2496 100644
--- a/src/main/java/gregtech/common/GT_RecipeAdder.java
+++ b/src/main/java/gregtech/common/GT_RecipeAdder.java
@@ -162,7 +162,8 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
aCleanroom = false;
}
GT_Recipe.GT_Recipe_Map.sChemicalRecipes.addRecipe(true, new ItemStack[]{aInput1, aInput2}, new ItemStack[]{aOutput, aOutput2}, null, null, new FluidStack[]{aFluidInput}, new FluidStack[]{aFluidOutput}, aDuration, aEUtick, aCleanroom ? -200 : 0);
- if (!(aInput1 != null && aInput1.getItem() instanceof GT_IntegratedCircuit_Item && aInput1.getItemDamage() >= 10)
+ if (!(aInput1 != null && aInput1.getItem() instanceof GT_Integrated
+ _Item && aInput1.getItemDamage() >= 10)
&& !(aInput2 != null && aInput2.getItem() instanceof GT_IntegratedCircuit_Item && aInput2.getItemDamage() >= 10)) {
GT_Recipe.GT_Recipe_Map.sMultiblockChemicalRecipes.addRecipe(false, new ItemStack[]{aInput1, aInput2}, new ItemStack[]{aOutput, aOutput2}, null, null, new FluidStack[]{aFluidInput}, new FluidStack[]{aFluidOutput}, aDuration, aEUtick, 0);
}
@@ -453,7 +454,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
boolean ret = false;
for (int oreID : OreDictionary.getOreIDs(aOutput1)) {
- if (OreDictionary.getOreName(oreID).contains("circuit")){
+ if (OreDictionary.getOreName(oreID).startsWith("circuit")){
return this.addAssemblerRecipeNonOD(aInputs, aFluidInput, aOutput1, aDuration, aEUt, aCleanroom);
}
}
@@ -465,7 +466,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
}
for (int oreID : OreDictionary.getOreIDs(aInputs[i])) {
String odName = OreDictionary.getOreName(oreID);
- if (odName.contains("circuit")) {
+ if (odName.startsWith("circuit")) {
for (ItemStack tStack : GT_OreDictUnificator.getOresImmutable(odName)) {
if (!GT_Utility.isStackValid(tStack))
continue;
@@ -1383,7 +1384,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
boolean ret = false;
for (int oreID : OreDictionary.getOreIDs(aOutput)) {
- if (OreDictionary.getOreName(oreID).contains("circuit")){
+ if (OreDictionary.getOreName(oreID).startsWith("circuit")){
return this.addCircuitAssemblerRecipeNonOredicted(aInputs, aFluidInput, aOutput, aDuration, aEUt, aCleanroom);
}
}
@@ -1391,7 +1392,7 @@ public class GT_RecipeAdder implements IGT_RecipeAdder {
for (int i = 0; i < aInputs.length; ++i) {
for (int oreID : OreDictionary.getOreIDs(aInputs[i])) {
String odName = OreDictionary.getOreName(oreID);
- if (odName.contains("circuit")) {
+ if (odName.startsWith("circuit")) {
for (ItemStack tStack : GT_OreDictUnificator.getOresImmutable(odName)) {
if (!GT_Utility.isStackValid(tStack))
continue;