aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java
index 1679629c88..36a390116e 100644
--- a/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java
+++ b/src/main/java/gtPlusPlus/xmod/gregtech/common/tileentities/machines/multi/production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java
@@ -240,7 +240,7 @@ public class GregTechMetaTileEntity_MegaAlloyBlastSmelter
public double getCoilDiscount(HeatingCoilLevel lvl) {
// Since there are only 14 tiers (starting from 0), this is what the function is.
double unRounded = (lvl != null ? lvl.getTier() : 0) / 130.0D;
- if (unRounded < 0) return 1F;
+ if (unRounded < 0) return 0F;
double rounded = Math.floor(unRounded * 1000) / 1000;
return Math.max(0, rounded);