aboutsummaryrefslogtreecommitdiff
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
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
-rw-r--r--.gitignore1
-rw-r--r--gradle.properties2
-rw-r--r--src/main/java/com/github/bartimaeusnek/crossmod/tectech/tileentites/multi/GT_Replacement/TT_PyrolyseOven.java22
3 files changed, 2 insertions, 23 deletions
diff --git a/.gitignore b/.gitignore
index f338842ce1..ac0fe978a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@
*.ctxt
# IDEA files
+.idea/
*.iml
*.ipr
*.iws
diff --git a/gradle.properties b/gradle.properties
index ff2f1c8178..8f238432bb 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -23,7 +23,7 @@ systemProp.org.gradle.internal.http.connectionTimeout=120000
systemProp.org.gradle.internal.http.socketTimeout=120000
majorUpdate=0
minorUpdate=5
-buildNumber=18
+buildNumber=19
apiVersion=11
ic2Version=2.2.828-experimental
applecoreVersion=1.7.10-3.1.1
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);