Only receive RF from sides in NORMAL mode.
Conflicts: src/main/java/mekanism/common/multipart/PartUniversalCable.java
This commit is contained in:
parent
224d778155
commit
ece8c6eb08
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue