Only receive RF from sides in NORMAL mode.

Conflicts:
	src/main/java/mekanism/common/multipart/PartUniversalCable.java
This commit is contained in:
Ben Spiers 2014-11-11 12:25:58 +00:00
parent 224d778155
commit ece8c6eb08

View file

@ -286,7 +286,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 * general.FROM_TE, !simulate)*general.TO_TE);
if(canReceiveEnergy(from))
{
return maxReceive - (int)Math.round(getTransmitterNetwork().emit(maxReceive * general.FROM_TE, !simulate) * general.TO_TE);
}
return 0;
}
@Override