if (!passAlong)
return extra;
try {
ILinkageManager lm = CartTools.getLinkageManager(worldObj);
EntityMinecart linkedCart = lm.getLinkedCartA(this);
if (extra > 0 && linkedCart != source && linkedCart instanceof IEnergyTransfer)
extra = ((IEnergyTransfer) linkedCart).injectEnergy(this, extra, tier, ignoreTransferLimit, simulate, true);
linkedCart = lm.getLinkedCartB(this);
if (extra > 0 && linkedCart != source && linkedCart instanceof IEnergyTransfer)
extra = ((IEnergyTransfer) linkedCart).injectEnergy(this, extra, tier, ignoreTransferLimit, simulate, true);
} catch (Throwable t) {
APIErrorHandler.versionMismatch(IEnergyTransfer.class);
}