From 0d21d201a9e71b7af7f41c8b791066cc4a0b57cf Mon Sep 17 00:00:00 2001 From: Ben Spiers Date: Tue, 11 Nov 2014 12:25:58 +0000 Subject: [PATCH] Only receive RF from sides in NORMAL mode. --- .../java/mekanism/common/multipart/PartUniversalCable.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/mekanism/common/multipart/PartUniversalCable.java b/src/main/java/mekanism/common/multipart/PartUniversalCable.java index 543ac3987..08d8afff1 100644 --- a/src/main/java/mekanism/common/multipart/PartUniversalCable.java +++ b/src/main/java/mekanism/common/multipart/PartUniversalCable.java @@ -274,7 +274,11 @@ public class PartUniversalCable extends PartTransmitter 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