diff options
author | Glease <4586901+Glease@users.noreply.github.com> | 2022-11-07 23:09:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 16:09:55 +0100 |
commit | 6c3d4537f1f98d66f09436a9fae99a7b4644ecf5 (patch) | |
tree | adf57af6bd219bd80157800a24c0758e58ab1de3 /src/main/java/gregtech/common/tileentities | |
parent | acfa3dfed94b0e8c69ab6439593197338701b1c4 (diff) | |
download | GT5-Unofficial-6c3d4537f1f98d66f09436a9fae99a7b4644ecf5.tar.gz GT5-Unofficial-6c3d4537f1f98d66f09436a9fae99a7b4644ecf5.tar.bz2 GT5-Unofficial-6c3d4537f1f98d66f09436a9fae99a7b4644ecf5.zip |
remove compat with IC2 fuel can (#1506)
* remove compat with IC2 fuel can
* Spotless apply for branch feature/remove-ic2-fuel-can for #1506 (#1507)
Co-authored-by: Glease <4586901+Glease@users.noreply.github.com>
Co-authored-by: GitHub GTNH Actions <>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Diffstat (limited to 'src/main/java/gregtech/common/tileentities')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java index ca6e77225e..1b53de5b42 100644 --- a/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java +++ b/src/main/java/gregtech/common/tileentities/generators/GT_MetaTileEntity_DieselGenerator.java @@ -17,7 +17,6 @@ import gregtech.api.metatileentity.MetaTileEntity; import gregtech.api.metatileentity.implementations.GT_MetaTileEntity_BasicGenerator; import gregtech.api.render.TextureFactory; import gregtech.api.util.GT_Log; -import gregtech.api.util.GT_ModHandler; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import gregtech.api.util.WorldSpawnedEventBuilder.ParticleEventBuilder; @@ -85,7 +84,7 @@ public class GT_MetaTileEntity_DieselGenerator extends GT_MetaTileEntity_BasicGe @Override public int getFuelValue(ItemStack aStack) { if (GT_Utility.isStackInvalid(aStack) || getRecipes() == null) return 0; - long rValue = Math.max(GT_ModHandler.getFuelCanValue(aStack) * 6 / 5, super.getFuelValue(aStack)); + long rValue = super.getFuelValue(aStack); if (ItemList.Fuel_Can_Plastic_Filled.isStackEqual(aStack, false, true)) { rValue = Math.max(rValue, GameRegistry.getFuelValue(aStack) * 3L); } |