aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/gregtech/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/gregtech/api')
-rw-r--r--src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java6
-rw-r--r--src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java4
2 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
index 4487ec57d6..813f31e62f 100644
--- a/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
+++ b/src/main/java/gregtech/api/interfaces/tileentity/IEnergyConnected.java
@@ -115,9 +115,9 @@ public interface IEnergyConnected extends IColoredTileEntity, IHasWorldObjectAnd
if (GT_Mod.gregtechproxy.mPollution)
GT_Pollution.addPollution(tWorld.getChunkFromBlockCoords(tX, tZ), 100000);
- PositionedWorldEvent<Entity> event = new PositionedWorldEvent<>(tWorld);
- event.setPosition(tX + 0.5, tY + 0.5, tZ + 0.5)
- .createExplosion(tStrength, true);
+ new PositionedWorldEvent<>(tWorld)
+ .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5)
+ .createExplosion(tStrength, true);
}
}
}
diff --git a/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java b/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java
index 879982e995..4459b2203a 100644
--- a/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java
+++ b/src/main/java/gregtech/api/metatileentity/MetaPipeEntity.java
@@ -699,8 +699,8 @@ public abstract class MetaPipeEntity implements IMetaTileEntity, IConnectable {
World tWorld = getBaseMetaTileEntity().getWorld();
tWorld.setBlock(tX, tY, tZ, Blocks.air);
if (GregTech_API.sMachineExplosions){
- PositionedWorldEvent<Entity> event = new PositionedWorldEvent<>(tWorld);
- event.setPosition(tX + 0.5, tY + 0.5, tZ + 0.5)
+ new PositionedWorldEvent<>(tWorld)
+ .setPosition(tX + 0.5, tY + 0.5, tZ + 0.5)
.createExplosion(tStrength, true);
}
}