aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorD-Cysteine <54219287+D-Cysteine@users.noreply.github.com>2021-07-27 13:27:54 -0600
committerD-Cysteine <54219287+D-Cysteine@users.noreply.github.com>2021-07-29 02:20:02 -0600
commit5e27ee9f483a7571578b9e05acaec0c35b186ec6 (patch)
tree88e80b6a97ceaf4756282639fcd5f3329af863a8 /src/main/java
parentae487a6e626657a0f1065ee8d84e13d1543ee7c2 (diff)
downloadGT5-Unofficial-5e27ee9f483a7571578b9e05acaec0c35b186ec6.tar.gz
GT5-Unofficial-5e27ee9f483a7571578b9e05acaec0c35b186ec6.tar.bz2
GT5-Unofficial-5e27ee9f483a7571578b9e05acaec0c35b186ec6.zip
Delete no longer needed dynamic pyrolyse recipe code
Former-commit-id: b84e31e09e2c4340884f5a518f8ff21d15e43a39
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/github/bartimaeusnek/crossmod/tectech/tileentites/multi/GT_Replacement/TT_PyrolyseOven.java22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/main/java/com/github/bartimaeusnek/crossmod/tectech/tileentites/multi/GT_Replacement/TT_PyrolyseOven.java b/src/main/java/com/github/bartimaeusnek/crossmod/tectech/tileentites/multi/GT_Replacement/TT_PyrolyseOven.java
index 0c1182189c..6ceb2791cf 100644
--- a/src/main/java/com/github/bartimaeusnek/crossmod/tectech/tileentites/multi/GT_Replacement/TT_PyrolyseOven.java
+++ b/src/main/java/com/github/bartimaeusnek/crossmod/tectech/tileentites/multi/GT_Replacement/TT_PyrolyseOven.java
@@ -14,11 +14,9 @@ import gregtech.api.interfaces.tileentity.IGregTechTileEntity;
import gregtech.api.render.TextureFactory;
import gregtech.api.util.GT_Recipe;
import gregtech.api.util.GT_Utility;
-import gregtech.loaders.oreprocessing.ProcessingLog;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
-import net.minecraftforge.oredict.OreDictionary;
import static com.github.bartimaeusnek.bartworks.util.BW_Tooltip_Reference.ADV_STR_CHECK;
import static com.github.bartimaeusnek.bartworks.util.BW_Tooltip_Reference.TT_BLUEPRINT;
@@ -165,10 +163,6 @@ public class TT_PyrolyseOven extends TT_Abstract_GT_Replacement_Coils {
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
- //Dynamic recipe adding for newly found logWoods - wont be visible in nei most probably
- if (tRecipe == null)
- tRecipe = addRecipesDynamically(tInputs, tFluids, tTier);
-
if (tRecipe == null || !tRecipe.isRecipeInputEqual(true, tFluids, tInputs))
return false;
setEfficiencyAndOc(tRecipe);
@@ -186,22 +180,6 @@ public class TT_PyrolyseOven extends TT_Abstract_GT_Replacement_Coils {
return true;
}
- private GT_Recipe addRecipesDynamically(ItemStack[] tInputs, FluidStack[] tFluids, int tTier) {
- if (tInputs.length <= 1 && (tInputs[0] == null || tInputs[0].getItem() == GT_Utility.getIntegratedCircuit(0).getItem())) {
- return null;
- }
- int oreId = OreDictionary.getOreID("logWood");
- for (ItemStack is : tInputs) {
- for (int id : OreDictionary.getOreIDs(is)) {
- if (oreId == id) {
- ProcessingLog.addPyrolyeOvenRecipes(is);
- return GT_Recipe.GT_Recipe_Map.sPyrolyseRecipes.findRecipe(getBaseMetaTileEntity(), false, gregtech.api.enums.GT_Values.V[tTier], tFluids, tInputs);
- }
- }
- }
- return null;
- }
-
@Override
public IMetaTileEntity newMetaEntity(IGregTechTileEntity aTileEntity) {
return new TT_PyrolyseOven(this.mName);