aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/metatileentity/implementations
diff options
context:
space:
mode:
authorMartin Robertz <dream-master@gmx.net>2021-11-29 22:48:18 +0100
committerGitHub <noreply@github.com>2021-11-29 22:48:18 +0100
commite3acb8f3f198b51d69d3e32bb6976c5db3034793 (patch)
tree688ba8909326e25d026b6c1f067cd5e1d5519bba /src/main/java/gregtech/api/metatileentity/implementations
parent05233a735d686238ac1f886fc1c22e65fcd9e0b4 (diff)
parent8494b65c5d390dd8c1035fd07534df55d1fb3ad4 (diff)
downloadGT5-Unofficial-e3acb8f3f198b51d69d3e32bb6976c5db3034793.tar.gz
GT5-Unofficial-e3acb8f3f198b51d69d3e32bb6976c5db3034793.tar.bz2
GT5-Unofficial-e3acb8f3f198b51d69d3e32bb6976c5db3034793.zip
Merge pull request #762 from boubou19/pollution
Pollution
Diffstat (limited to 'src/main/java/gregtech/api/metatileentity/implementations')
-rw-r--r--src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
index 8fe70c4f72..f7b15f2c44 100644
--- a/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
+++ b/src/main/java/gregtech/api/metatileentity/implementations/GT_MetaTileEntity_MultiBlockBase.java
@@ -398,13 +398,16 @@ public abstract class GT_MetaTileEntity_MultiBlockBase extends MetaTileEntity {
/**
* Gets the pollution this Device outputs to a Muffler per tick (10000 = one Pullution Block)
*/
- public abstract int getPollutionPerTick(ItemStack aStack);
+ public int getPollutionPerTick(ItemStack aStack){
+ return getPollutionPerSecond(aStack)/20;
+ }
/**
- * Gets the pollution produced per second by this multiblock
+ * Gets the pollution produced per second by this multiblock, default to 0. Override this with
+ * its actual value in the code of the multiblock.
*/
public int getPollutionPerSecond(ItemStack aStack){
- return 20 * getPollutionPerTick(aStack);
+ return 0;
}
/**