aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces
diff options
context:
space:
mode:
authorTechlone <techlone.mc@gmail.com>2017-06-01 20:59:20 +0500
committerTechlone <techlone.mc@gmail.com>2017-06-01 20:59:20 +0500
commitf2f74c09f931b5e6647037b40d56672d3b605cb2 (patch)
tree0bb366812afd8d8fe1473112b7ac7898e134d977 /src/main/java/gregtech/api/interfaces
parentf19e920925aa5c85ec32e7e4b6e17588528eb3e3 (diff)
parent0a928887eda8a9a3961d9b409e8ed7b2b1336995 (diff)
downloadGT5-Unofficial-f2f74c09f931b5e6647037b40d56672d3b605cb2.tar.gz
GT5-Unofficial-f2f74c09f931b5e6647037b40d56672d3b605cb2.tar.bz2
GT5-Unofficial-f2f74c09f931b5e6647037b40d56672d3b605cb2.zip
Merge branch 'unstable' of https://github.com/Blood-Asp/GT5-Unofficial into unstable
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
index b62ed4500b..63020684c0 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
@@ -1,8 +1,10 @@
package gregtech.api.interfaces.tileentity;
import cofh.api.energy.IEnergyReceiver;
+import gregtech.GT_Mod;
import gregtech.api.GregTech_API;
import gregtech.api.util.GT_Utility;
+import gregtech.common.GT_Pollution;
import ic2.api.energy.tile.IEnergySink;
import net.minecraft.init.Blocks;
import net.minecraft.tileentity.TileEntity;
@@ -85,6 +87,8 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd
GT_Utility.sendSoundToPlayers(tWorld, GregTech_API.sSoundList.get(209), 1.0F, -1, tX, tY, tZ);
tWorld.setBlock(tX, tY, tZ, Blocks.air);
if (GregTech_API.sMachineExplosions)
+ if(GT_Mod.gregtechproxy.mPollution)
+ GT_Pollution.addPollution(tWorld.getChunkFromBlockCoords(tX,tZ), 100000);
tWorld.createExplosion(null, tX + 0.5, tY + 0.5, tZ + 0.5, tStrength, true);
}
}