if (tileAdj instanceof TileBaseConductor)
{
IElectricityNetwork network = ((IConductor) tileAdj).getNetwork();
if (network != null)
{
amountProduced += (toSend - network.produce(toSend, !simulate, this.tierGC, this));
}
}
else if (tileAdj instanceof TileBaseUniversalElectrical)
{
amountProduced += ((TileBaseUniversalElectrical) tileAdj).receiveElectricity(direction.getOpposite(), toSend, this.tierGC, !simulate);