diff options
author | Martin Robertz <dream-master@gmx.net> | 2022-07-29 08:13:28 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-29 08:13:28 +0700 |
commit | cd05de3fe480a54c9ddfbdc94d51c4ab5c08829d (patch) | |
tree | f675fcfc3ca742d872a69329191b8f1e85e4ec64 | |
parent | b29d8a8f85d82e73ac695b549257e19208548cf1 (diff) | |
parent | 4e6c018ba2fc535b827cf66f8d8a74bedd07ddec (diff) | |
download | GT5-Unofficial-cd05de3fe480a54c9ddfbdc94d51c4ab5c08829d.tar.gz GT5-Unofficial-cd05de3fe480a54c9ddfbdc94d51c4ab5c08829d.tar.bz2 GT5-Unofficial-cd05de3fe480a54c9ddfbdc94d51c4ab5c08829d.zip |
Merge pull request #23 from GTNewHorizons/sm-wash
Fix Samarium Simple Washer
-rw-r--r-- | src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java b/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java index 98bfc045b0..05a94354d7 100644 --- a/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java +++ b/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java @@ -1513,7 +1513,8 @@ public class RecipeLoader { if (GT_Utility.isStackValid(input)) { int[] oreDict = OreDictionary.getOreIDs(input); for (int oreDictID : oreDict) { - if (OreDictionary.getOreName(oreDictID).startsWith("dustImpureCerium")) { + if (OreDictionary.getOreName(oreDictID).startsWith("dustImpureCerium") + || OreDictionary.getOreName(oreDictID).startsWith("dustImpureSamarium")) { GT_Recipe tRecipe = recipe.copy(); for (int i = 0; i < tRecipe.mOutputs.length; i++) { if (!GT_Utility.isStackValid(tRecipe.mOutputs[i])) continue; @@ -1521,6 +1522,10 @@ public class RecipeLoader { tRecipe.mOutputs[i] = GT_Utility.copyAmount( tRecipe.mOutputs[i].stackSize, WerkstoffMaterialPool.CeriumRichMixture.get(OrePrefixes.dust, 1)); + } else if (tRecipe.mOutputs[i].isItemEqual(Materials.Samarium.getDust(1))) { + tRecipe.mOutputs[i] = GT_Utility.copyAmount( + tRecipe.mOutputs[i].stackSize, + WerkstoffMaterialPool.SamariumOreConcentrate.get(OrePrefixes.dust, 1)); } } if (!tRecipe.equals(recipe)) { |