diff options
| author | Prometheus0000 <prometheus0000000@gmail.com> | 2021-03-13 13:01:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-13 13:01:00 -0500 |
| commit | 64ecbdcfc179ffbe7a00500081abee4959c690af (patch) | |
| tree | 7a8909f423dcf299cd52149af3fe80fb2ce8f2f6 /src/main/java/gregtech/api/interfaces | |
| parent | 450d4c0df507f1927bd7a0929c736238d7d8e90e (diff) | |
| parent | 49d201accb39af30ede9169077f21e07aef22243 (diff) | |
| download | GT5-Unofficial-64ecbdcfc179ffbe7a00500081abee4959c690af.tar.gz GT5-Unofficial-64ecbdcfc179ffbe7a00500081abee4959c690af.tar.bz2 GT5-Unofficial-64ecbdcfc179ffbe7a00500081abee4959c690af.zip | |
Merge pull request #26 from GTNewHorizons/experimental
update
Diffstat (limited to 'src/main/java/gregtech/api/interfaces')
| -rw-r--r-- | src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java index 47bec844ee..158b53068d 100644 --- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java +++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java @@ -4,6 +4,7 @@ import cofh.api.energy.IEnergyReceiver; import gregtech.GT_Mod; import gregtech.api.GregTech_API; import gregtech.api.util.GT_Utility; +import gregtech.api.util.WorldSpawnedEventBuilder; import gregtech.common.GT_Pollution; import ic2.api.energy.tile.IEnergySink; import net.minecraft.init.Blocks; @@ -112,7 +113,13 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd 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); + + new WorldSpawnedEventBuilder.ExplosionEffectEventBuilder() + .setStrength(tStrength) + .setSmoking(true) + .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5) + .setWorld(tWorld) + .run(); } } } |
