diff options
author | boubou_19 <miisterunknown@gmail.com> | 2021-11-25 01:52:47 +0100 |
---|---|---|
committer | boubou_19 <miisterunknown@gmail.com> | 2021-11-25 01:52:47 +0100 |
commit | a02ad36015d395a34a3f5d5b3ee6fc8c7e494e34 (patch) | |
tree | fefc6fab946feeb945cff363083b00c75c95006b /src/main/java/gregtech/common/tileentities/machines | |
parent | ef7017fdb7db218971492a3cc250b3f56eb3f576 (diff) | |
download | GT5-Unofficial-a02ad36015d395a34a3f5d5b3ee6fc8c7e494e34.tar.gz GT5-Unofficial-a02ad36015d395a34a3f5d5b3ee6fc8c7e494e34.tar.bz2 GT5-Unofficial-a02ad36015d395a34a3f5d5b3ee6fc8c7e494e34.zip |
changed the gas turbine to use per second for more precision
Diffstat (limited to 'src/main/java/gregtech/common/tileentities/machines')
-rw-r--r-- | src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java index 696abf19d4..6b58f8a44d 100644 --- a/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java +++ b/src/main/java/gregtech/common/tileentities/machines/multi/GT_MetaTileEntity_LargeTurbine_Gas.java @@ -42,7 +42,7 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT tt.addMachineType("Gas Turbine") .addInfo("Controller block for the Large Gas Turbine") .addInfo("Needs a Turbine, place inside controller") - .addPollutionAmount(20 * getPollutionPerTick(null)) + .addPollutionAmount(getPollutionPerSecond(null)) .addSeparator() .beginStructureBlock(3, 3, 4, true) .addController("Front center") @@ -83,8 +83,13 @@ public class GT_MetaTileEntity_LargeTurbine_Gas extends GT_MetaTileEntity_LargeT } @Override - public int getPollutionPerTick(ItemStack aStack) { - return GT_Mod.gregtechproxy.mPollutionLargeGasTurbine; + public int getPollutionPerSecond(ItemStack aStack) { + return GT_Mod.gregtechproxy.mPollutionLargeGasTurbinePerSecond; + } + + @Override + public int getPollutionPerTick(ItemStack aStack){ + return getPollutionPerSecond(aStack)/20; } @Override |