aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java
index 1e95c13fee..b665844593 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/turbines/GT_MTE_LargeTurbine_Plasma.java
@@ -108,7 +108,6 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
|| this.getBaseMetaTileEntity().hasInventoryBeenModified()) {
counter = 0;
- // log("Running checkRecipeGeneric(1)");
float aTotalBaseEff = 0;
float aTotalOptimalFlow = 0;
@@ -118,7 +117,6 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
aTotalBaseEff += GT_Utility.safeInt((long)
((5F + ((GT_MetaGenerated_Tool) aStack.getItem()).getToolCombatDamage(aStack))
* 1000F));
- // log("Bumped base eff to "+aTotalBaseEff);
}
aTotalOptimalFlow += GT_Utility.safeInt((long) Math.max(
Float.MIN_NORMAL,
@@ -131,19 +129,13 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
log("Int overflow, report to issue tracker");
aTotalOptimalFlow = 100;
}
- // log("Bumped base optimal flow to "+aTotalOptimalFlow);
}
flowMultipliers[0] = GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mSteamMultiplier;
flowMultipliers[1] = GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mGasMultiplier;
flowMultipliers[2] = GT_MetaGenerated_Tool.getPrimaryMaterial(aStack).mPlasmaMultiplier;
- // log("Running checkRecipeGeneric(2)");
- // log("Total base eff: "+aTotalBaseEff);
- // log("Total base optimal flow: "+aTotalOptimalFlow);
baseEff = MathUtils.roundToClosestInt(aTotalBaseEff);
optFlow = MathUtils.roundToClosestInt(aTotalOptimalFlow);
- // log("Total eff: "+baseEff);
- // log("Total optimal flow: "+optFlow);
if (optFlow <= 0 || baseEff <= 0) {
log("Running checkRecipeGeneric(bad-1)");
stopMachine(); // in case the turbine got removed
@@ -154,36 +146,26 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
}
}
- // log("Total eff: "+baseEff);
- // log("Total optimal flow: "+optFlow);
// How much the turbine should be producing with this flow
int newPower = fluidIntoPower(tFluids, optFlow, baseEff, flowMultipliers);
- // log("Bumped newPower to "+newPower);
- // log("New Power: "+newPower);
int difference = newPower - this.mEUt; // difference between current output and new output
- // log("diff: "+difference);
-
// Magic numbers: can always change by at least 10 eu/t, but otherwise by at most 1 percent of the
// difference in power level (per tick)
// This is how much the turbine can actually change during this tick
int maxChangeAllowed = Math.max(10, GT_Utility.safeInt((long) Math.abs(difference) / 100));
- // log("Max Change Allowed: "+maxChangeAllowed);
if (Math.abs(difference)
> maxChangeAllowed) { // If this difference is too big, use the maximum allowed change
int change = maxChangeAllowed * (difference > 0 ? 1 : -1); // Make the change positive or negative.
this.mEUt += change; // Apply the change
- // log("Applied power change.");
} else {
this.mEUt = newPower;
- // log("Using same value.");
}
if (this.mEUt <= 0) {
this.mEUt = 0;
this.mEfficiency = 0;
log("Running checkRecipeGeneric(bad-2)");
- // stopMachine();
return false;
} else {
this.mMaxProgresstime = 20;
@@ -191,7 +173,6 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
// Overvoltage is handled inside the MultiBlockBase when pushing out to dynamos. no need to do it here.
// Play sounds (GT++ addition - GT multiblocks play no sounds)
startProcess();
- // log("GOOD RETURN - Making: "+this.mEUt+" EU/t");
return true;
}
} catch (Throwable t) {
@@ -247,7 +228,6 @@ public class GT_MTE_LargeTurbine_Plasma extends GregtechMetaTileEntity_LargerTur
if (totalFlow <= 0) return 0;
tEU = GT_Utility.safeInt((long) ((fuelValue / 20D) * (double) totalFlow));
- // GT_FML_LOGGER.info(totalFlow+" : "+fuelValue+" : "+aOptFlow+" : "+actualOptimalFlow+" : "+tEU);
if (totalFlow == actualOptimalFlow) {
tEU = GT_Utility.safeInt((long) (aBaseEff / 10000D * tEU));