Only receive RF from sides in NORMAL mode.

This commit is contained in:
Ben Spiers 2014-11-11 12:25:58 +00:00
parent 92f1579bba
commit 0d21d201a9

View file

@ -274,7 +274,11 @@ public class PartUniversalCable extends PartTransmitter<EnergyNetwork> implement
@Method(modid = "CoFHAPI|energy")
public int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate)
{
return maxReceive - (int)Math.round(getTransmitterNetwork().emit(maxReceive*Mekanism.FROM_TE, !simulate)*Mekanism.TO_TE);
if(canReceiveEnergy(from))
{
return maxReceive - (int)Math.round(getTransmitterNetwork().emit(maxReceive * Mekanism.FROM_TE, !simulate) * Mekanism.TO_TE);
}
return 0;
}
@Override