diff options
author | GlodBlock <60341015+GlodBlock@users.noreply.github.com> | 2021-11-04 15:40:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-04 15:40:51 +0800 |
commit | c6cde9b5b185a4641d2a8bed0b7ae70e617a6933 (patch) | |
tree | 64a532bf45cc0e63dad882c1cb4b00bfc68fefa5 /src | |
parent | 78e0bff4ad7aeefb2f14d56eb1c7d4bfa30a604b (diff) | |
download | GT5-Unofficial-c6cde9b5b185a4641d2a8bed0b7ae70e617a6933.tar.gz GT5-Unofficial-c6cde9b5b185a4641d2a8bed0b7ae70e617a6933.tar.bz2 GT5-Unofficial-c6cde9b5b185a4641d2a8bed0b7ae70e617a6933.zip |
Update GregtechMetaTileEntity_IndustrialAlloySmelter.java
remove unnecessary max check
Diffstat (limited to 'src')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java index 599c2eb68d..910ae8bff6 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/processing/GregtechMetaTileEntity_IndustrialAlloySmelter.java @@ -279,7 +279,7 @@ public class GregtechMetaTileEntity_IndustrialAlloySmelter extends GregtechMeta_ // Convert speed bonus to duration multiplier // e.g. 100% speed bonus = 200% speed = 100%/200% = 50% recipe duration. - aSpeedBonusPercent = Math.max(-99, mLevel * 5); + aSpeedBonusPercent = mLevel * 5; float tTimeFactor = 100.0f / (100.0f + aSpeedBonusPercent); this.mMaxProgresstime = (int) (tRecipe.mDuration * tTimeFactor); int rInt = 2; |