aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorunknown <gtandemmodding@gmail.com>2022-05-18 19:06:59 +1000
committerunknown <gtandemmodding@gmail.com>2022-05-18 19:06:59 +1000
commitea85d0f6448feaf67f8487411b654d4eb77098e9 (patch)
treec18f98f0a3c30e3f6e354e6d281542ae7e8a84f0 /src/main/java
parent99261abab7f140d7bbbad51efe1d38d4ae8b038f (diff)
downloadGT5-Unofficial-ea85d0f6448feaf67f8487411b654d4eb77098e9.tar.gz
GT5-Unofficial-ea85d0f6448feaf67f8487411b654d4eb77098e9.tar.bz2
GT5-Unofficial-ea85d0f6448feaf67f8487411b654d4eb77098e9.zip
Revert sifting block that barely works
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java29
1 files changed, 17 insertions, 12 deletions
diff --git a/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java b/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java
index 8d241c9630..47ed518449 100644
--- a/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java
+++ b/src/main/java/com/elisis/gtnhlanth/loader/RecipeLoader.java
@@ -15,6 +15,8 @@ import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.oredict.OreDictionary;
+import java.lang.reflect.Array;
+import java.util.Arrays;
import java.util.HashSet;
public class RecipeLoader {
@@ -1577,21 +1579,24 @@ public class RecipeLoader {
}
*/
-
+
+
+ /* DOES NOT WORK, something to do with load times for sifter recipes or some shit
//Sifter
for (GT_Recipe recipe : GT_Recipe.GT_Recipe_Map.sSifterRecipes.mRecipeList) {
- //ItemStack input = recipe.mInputs[0];
- for (ItemStack input : recipe.mInputs) {
- GT_Log.out.print(input.getDisplayName() + "\n");
- if (GT_Utility.isStackValid(input)) {
- if (input.getDisplayName().contains("Tin Ore") || input.getDisplayName().contains("Ilmenite Ore") || input.getDisplayName().contains("Cassiterite Ore")) {
-
- GT_Recipe tRecipe = recipe.copy();
- remove.add(recipe);
- break;
- }
+ if (recipe.mInputs.length == 0)
+ break;
+ ItemStack input = recipe.mInputs[0];
+ GT_Log.out.print("Sift ore found " + input.getDisplayName() + "\n");
+ if (GT_Utility.isStackValid(input)) {
+ if (true) {
+ GT_Log.out.print("Sift ore found and iffed " + input.getDisplayName() + "\n");
+ //GT_Recipe tRecipe = recipe.copy();
+ remove.add(recipe);
+ break;
}
}
+
}
GT_Recipe.GT_Recipe_Map.sSifterRecipes.mRecipeList.removeAll(remove);
@@ -1604,7 +1609,7 @@ public class RecipeLoader {
reAdd.clear();
GT_Log.out.print("Sifter done!\n");
-
+ */
//Chemical Bath
for (GT_Recipe recipe : GT_Recipe.GT_Recipe_Map.sChemicalBathRecipes.mRecipeList) {
//ItemStack input = recipe.mInputs[0];