diff options
author | Techlone <techlone.mc@gmail.com> | 2017-06-01 20:59:40 +0500 |
---|---|---|
committer | Techlone <techlone.mc@gmail.com> | 2017-06-01 20:59:40 +0500 |
commit | 067f4491a812497f6bd013690cf9d8b13f8fc4b3 (patch) | |
tree | 2d2fb412e2f503b9ba5fafa073e0afec6580c464 /src/main/java/gregtech/api/interfaces | |
parent | 7c48590a49242bb26eddafa26d2cd7b4ce3546d8 (diff) | |
parent | f2f74c09f931b5e6647037b40d56672d3b605cb2 (diff) | |
download | GT5-Unofficial-067f4491a812497f6bd013690cf9d8b13f8fc4b3.tar.gz GT5-Unofficial-067f4491a812497f6bd013690cf9d8b13f8fc4b3.tar.bz2 GT5-Unofficial-067f4491a812497f6bd013690cf9d8b13f8fc4b3.zip |
Merge branch 'unstable' into advminer2_improvements
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
-rw-r--r-- | src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java | 4 |
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); } } |