aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build.gradle2
-rw-r--r--src/Java/gtPlusPlus/core/lib/CORE.java2
-rw-r--r--src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java72
-rw-r--r--src/resources/mcmod.info2
4 files changed, 71 insertions, 7 deletions
diff --git a/build.gradle b/build.gradle
index 8cb560c8ef..fbe23bdb69 100644
--- a/build.gradle
+++ b/build.gradle
@@ -40,7 +40,7 @@ sourceCompatibility = 1.7
targetCompatibility = 1.7
archivesBaseName = "GT-PlusPlus"
-version = "1.6.02-release"
+version = "1.6.05-release"
minecraft.version = "1.7.10-10.13.4.1448-1.7.10"
task sourceJar(type: Jar) {
diff --git a/src/Java/gtPlusPlus/core/lib/CORE.java b/src/Java/gtPlusPlus/core/lib/CORE.java
index 840173a792..cb1eaa3a01 100644
--- a/src/Java/gtPlusPlus/core/lib/CORE.java
+++ b/src/Java/gtPlusPlus/core/lib/CORE.java
@@ -34,7 +34,7 @@ public class CORE {
public static final String name = "GT++";
public static final String MODID = "miscutils";
- public static final String VERSION = "1.6.02-release";
+ public static final String VERSION = "1.6.05-release";
public static String MASTER_VERSION = NetworkUtils.getContentFromURL("https://raw.githubusercontent.com/draknyte1/GTplusplus/master/Recommended.txt").toLowerCase();
public static String USER_COUNTRY = GeoUtils.determineUsersCountry();
public static boolean isModUpToDate = Utils.isModUpToDate();
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
index 7352b5dfca..9dcd257944 100644
--- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
+++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/GregtechMetaTileEntity_IndustrialWashPlant.java
@@ -101,33 +101,44 @@ extends GregtechMeta_MultiBlockBase {
Utils.LOG_WARNING("Did not find enough cleaning solution.");
return false;
}
+ Utils.LOG_INFO("1");
- ArrayList<ItemStack> tInputList = getStoredInputs();
+ /*ArrayList<ItemStack> tInputList = getStoredInputs();
ArrayList<FluidStack> tFluidInputs = getStoredFluids();
for (ItemStack tInput : tInputList) {
+ Utils.LOG_INFO("2");
long tVoltage = getMaxInputVoltage();
byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sOreWasherRecipes.findRecipe(getBaseMetaTileEntity(), false,
gregtech.api.enums.GT_Values.V[tTier],
new FluidStack[] { (tFluidInputs.isEmpty()) ? null : (FluidStack) tFluidInputs.get(0) },
new ItemStack[] { tInput });
+
+ tRecipe = this.reduceRecipeTimeByPercentage(tRecipe, 60);
+
if (tRecipe != null) {
+ Utils.LOG_INFO("3");
this.mEfficiency = (10000 - ((getIdealStatus() - getRepairStatus()) * 1000));
this.mEfficiencyIncrease = 10000;
this.mEUt = tRecipe.mEUt;
if (tRecipe.mEUt <= 16) {
+ Utils.LOG_INFO("3.1");
this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
} else {
+ Utils.LOG_INFO("3.2");
this.mEUt = tRecipe.mEUt;
this.mMaxProgresstime = tRecipe.mDuration;
while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) {
+ Utils.LOG_INFO("3.3");
this.mEUt *= 4;
this.mMaxProgresstime /= 2;
}
}
+ Utils.LOG_INFO("4");
if (this.mEUt > 0) {
+ Utils.LOG_INFO("4.1");
this.mEUt = (-this.mEUt);
}
this.mMaxProgresstime = (this.mMaxProgresstime * 2 / (1 + 3));
@@ -136,7 +147,7 @@ extends GregtechMeta_MultiBlockBase {
//this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
ItemStack mNewOutputs[] = new ItemStack[tRecipe.mOutputs.length];
for (int f=0;f<tRecipe.mOutputs.length;f++){
- Utils.LOG_WARNING("Step 5 - Adding Output");
+ Utils.LOG_INFO("Step 5 - Adding Output");
mNewOutputs[f] = tRecipe.mOutputs[f].copy();
}
this.mOutputItems = mNewOutputs;
@@ -146,16 +157,69 @@ extends GregtechMeta_MultiBlockBase {
//this.mOutputFluids = new FluidStack[] { tRecipe.getFluidOutput(0) };
FluidStack outputFluids[] = new FluidStack[1];
if (true){
- Utils.LOG_WARNING("Adding Sludge");
- outputFluids[0] = FluidUtils.getFluidStack("fluid.sludge", 100);
+ Utils.LOG_INFO("Adding Sludge");
+ outputFluids[0] = FluidUtils.getFluidStack("potion.poison", 10);
}
this.mOutputFluids = outputFluids;
updateSlots();
}
updateSlots();
+ Utils.LOG_INFO("5");
return true;
}
}
+ return false;*/
+
+ ArrayList<ItemStack> tInputList = getStoredInputs();
+ ArrayList<FluidStack> tFluidInputs = getStoredFluids();
+ for (ItemStack tInput : tInputList) {
+ long tVoltage = getMaxInputVoltage();
+ byte tTier = (byte) Math.max(1, GT_Utility.getTier(tVoltage));
+ GT_Recipe tRecipe = GT_Recipe.GT_Recipe_Map.sOreWasherRecipes.findRecipe(getBaseMetaTileEntity(), false,
+ gregtech.api.enums.GT_Values.V[tTier],
+ new FluidStack[] { (tFluidInputs.isEmpty()) ? null : (FluidStack) tFluidInputs.get(0) },
+ new ItemStack[] { this.mInventory[1], tInput });
+ if (tRecipe != null) {
+ if (tRecipe.isRecipeInputEqual(true,
+ new FluidStack[] { (tFluidInputs.isEmpty()) ? null : (FluidStack) tFluidInputs.get(0) },
+ new ItemStack[] { tInput, this.mInventory[1] })) {
+ this.mEfficiency = (10000 - ((getIdealStatus() - getRepairStatus()) * 1000));
+ this.mEfficiencyIncrease = 10000;
+
+ this.mEUt = tRecipe.mEUt;
+ if (tRecipe.mEUt <= 16) {
+ this.mEUt = (tRecipe.mEUt * (1 << tTier - 1) * (1 << tTier - 1));
+ this.mMaxProgresstime = (tRecipe.mDuration / (1 << tTier - 1));
+ } else {
+ this.mEUt = tRecipe.mEUt;
+ this.mMaxProgresstime = tRecipe.mDuration;
+ while (this.mEUt <= gregtech.api.enums.GT_Values.V[(tTier - 1)]) {
+ this.mEUt *= 4;
+ this.mMaxProgresstime /= 2;
+ }
+ }
+ if (this.mEUt > 0) {
+ this.mEUt = (-this.mEUt);
+ }
+ this.mMaxProgresstime = (this.mMaxProgresstime * 2 / (1 + 5));
+ this.mMaxProgresstime = Math.max(1, this.mMaxProgresstime);
+ if (tRecipe.mOutputs.length > 0){
+ //this.mOutputItems = new ItemStack[] { tRecipe.getOutput(0) };
+ ItemStack mNewOutputs[] = new ItemStack[tRecipe.mOutputs.length];
+ for (int f=0;f<tRecipe.mOutputs.length;f++){
+ Utils.LOG_INFO("Step 5 - Adding Output");
+ mNewOutputs[f] = tRecipe.mOutputs[f].copy();
+ }
+ this.mOutputItems = mNewOutputs;
+ updateSlots();
+ }
+ if (tRecipe.mFluidOutputs.length > 0)
+ this.mOutputFluids = new FluidStack[] { tRecipe.getFluidOutput(0) };
+ updateSlots();
+ return true;
+ }
+ }
+ }
return false;
}
diff --git a/src/resources/mcmod.info b/src/resources/mcmod.info
index 44592f2018..a40ffc5fcd 100644
--- a/src/resources/mcmod.info
+++ b/src/resources/mcmod.info
@@ -5,7 +5,7 @@
"description": "Adds a few various Multiblocks, Machines, etc to Gregtech and a plethora of other mods (Nearly 30!)",
"credits": "",
"logoFile": "",
- "version": "1.6.02-release",
+ "version": "1.6.05-release",
"mcversion": "1.7.10",
"url": "https://github.com/draknyte1/GTplusplus/wiki",
"updateUrl": "https://github.com/draknyte1/GTplusplus/releases/latest",