Skip to content

Commit

Permalink
SpotlessApply
Browse files Browse the repository at this point in the history
  • Loading branch information
dagger8243 committed Sep 29, 2024
1 parent d52566a commit 5246f46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ public void updateNeighboringNetworks() {
for (ForgeDirection side : ForgeDirection.VALID_DIRECTIONS) {
TileEntity t = aBaseMetaTileEntity.getTileEntityAtSide(side);
if (t instanceof IGregTechTileEntity a) {
if (a.getMetaTileEntity() instanceof MTEPipeData b)
b.updateNetwork(true);
if (a.getMetaTileEntity() instanceof MTEPipeData b) b.updateNetwork(true);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import tectech.TecTech;
import tectech.loader.NetworkDispatcher;
import tectech.mechanics.pipe.IActivePipe;
import tectech.mechanics.pipe.IConnectsToDataPipe;
import tectech.mechanics.pipe.IConnectsToEnergyTunnel;
import tectech.mechanics.pipe.PipeActivityMessage;
import tectech.util.CommonValues;
Expand Down Expand Up @@ -138,12 +137,12 @@ public void updateNetwork(boolean nestedCall) {
connectionCount++;
} else if (tTileEntity instanceof IGregTechTileEntity
&& ((IGregTechTileEntity) tTileEntity).getMetaTileEntity() instanceof IConnectsToEnergyTunnel) {
if (((IConnectsToEnergyTunnel) ((IGregTechTileEntity) tTileEntity).getMetaTileEntity())
.canConnect(oppositeSide)) {
mConnections |= side.flag;
connectionCount++;
if (((IConnectsToEnergyTunnel) ((IGregTechTileEntity) tTileEntity).getMetaTileEntity())
.canConnect(oppositeSide)) {
mConnections |= side.flag;
connectionCount++;
}
}
}
}

if (!nestedCall) updateNeighboringNetworks();
Expand Down Expand Up @@ -198,7 +197,6 @@ public void onPostTick(IGregTechTileEntity aBaseMetaTileEntity, long aTick) {
}
}


@Override
public void loadNBTData(NBTTagCompound nbtTagCompound) {
active = nbtTagCompound.getBoolean("eActive");
Expand Down

0 comments on commit 5246f46

Please sign in to comment.