From c416a9f0acfa40ebc856e662772ba71e358639a8 Mon Sep 17 00:00:00 2001 From: skyinr <41814896+skyinr@users.noreply.github.com> Date: Sun, 9 Jun 2024 20:27:37 +0800 Subject: Fix Mega ABS coils discount (#2646) Fix Coil Discount --- .../production/mega/GregTechMetaTileEntity_MegaAlloyBlastSmelter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java') 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); -- cgit