aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api/interfaces
diff options
context:
space:
mode:
authorPrometheus0000 <prometheus0000000@gmail.com>2021-03-13 13:01:00 -0500
committerGitHub <noreply@github.com>2021-03-13 13:01:00 -0500
commit64ecbdcfc179ffbe7a00500081abee4959c690af (patch)
tree7a8909f423dcf299cd52149af3fe80fb2ce8f2f6 /src/main/java/gregtech/api/interfaces
parent450d4c0df507f1927bd7a0929c736238d7d8e90e (diff)
parent49d201accb39af30ede9169077f21e07aef22243 (diff)
downloadGT5-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.java9
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();
}
}
}