From ece8c6eb08987b8754004e29d05e47bd2b3bcbdb 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. Conflicts: src/main/java/mekanism/common/multipart/PartUniversalCable.java --- .../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 f5aa68457..e8103b911 100644 --- a/src/main/java/mekanism/common/multipart/PartUniversalCable.java +++ b/src/main/java/mekanism/common/multipart/PartUniversalCable.java @@ -286,7 +286,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 * 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