double powerToSend2 = powerToSendAfterLoss / needsPower.size();
//System.out.println("needsPower: " + needsPower.size() + " - PowerToSend2: " + powerToSend2);
for (int b = 0; b < needsPower.size(); b++) {
if (needsPower.get(b).tile instanceof TileGenericPipe) {
TileGenericPipe nearbyTile = (TileGenericPipe) needsPower.get(b).tile;
PipeTransportPower nearbyTransport = (PipeTransportPower) nearbyTile.pipe.transport;
nearbyTransport.receiveEnergy(needsPower.get(b).ori, powerToSend);
}
else if (needsPower.get(b).tile instanceof IPowerReceptor) {
IPowerReceptor pow = (IPowerReceptor) needsPower.get(b);