From e37dd40d641add25c5041a4907954dc2b925aa1a Mon Sep 17 00:00:00 2001 From: Spacebuilder2020 Date: Sun, 8 Sep 2024 18:28:14 -0600 Subject: Remove Dynamic Adjustment logic and instead apply the adjustment right away if a fuel is eligible for super eff increase (#3062) Co-authored-by: Martin Robertz Co-authored-by: boubou19 --- .../machines/multi/MTELargeBoiler.java | 25 +++++++++------------- 1 file changed, 10 insertions(+), 15 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/MTELargeBoiler.java b/src/main/java/gregtech/common/tileentities/machines/multi/MTELargeBoiler.java index 64998d619b..da7af756de 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/MTELargeBoiler.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/MTELargeBoiler.java @@ -365,21 +365,9 @@ public abstract class MTELargeBoiler extends MTEEnhancedMultiBlockBase 0) { - int maxEff = getMaxEfficiency(mInventory[1]) - ((getIdealStatus() - getRepairStatus()) * 1000); - if (this.mSuperEfficencyIncrease > 0 && mEfficiency <= maxEff) { + int maxEff = getCorrectedMaxEfficiency(mInventory[1]); + if (this.mSuperEfficencyIncrease > 0 && mEfficiency < maxEff) { mEfficiency = Math.max(0, Math.min(mEfficiency + mSuperEfficencyIncrease, maxEff)); - if (mEfficiency == maxEff) { - // Adjust the burntime dynamically to account for circuit program - // This is to account for the dramatic issue where the machine outputs the throttled - // amount but the burntime is not throttled. - // This is very apparent when burning blocks with super high burntimes - int oldProgressTime = mProgresstime; - int oldMaxProgressTime = mMaxProgresstime; - int maxProgressTime = adjustBurnTimeForConfig(oldMaxProgressTime); - double progressRatio = (double) oldProgressTime / oldMaxProgressTime; - int progressTime = (int) Math.ceil(maxProgressTime * progressRatio); - mMaxProgresstime = maxProgressTime - (progressTime - oldProgressTime); - } } int tGeneratedEU = (int) (this.mEUt * 2L * this.mEfficiency / 10000L); if (tGeneratedEU > 0) { @@ -488,8 +476,15 @@ public abstract class MTELargeBoiler extends MTEEnhancedMultiBlockBase