From 8f8f1751ec1425a793b449c08c0852f8166ff0eb Mon Sep 17 00:00:00 2001 From: aidancbrady Date: Thu, 30 Jun 2016 11:14:21 -0400 Subject: [PATCH] Fixed Tesseract and Flux Duct support --- src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java b/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java index d4efd3e4a..5ead4daa5 100644 --- a/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java +++ b/src/main/java/mekanism/common/base/EnergyAcceptorWrapper.java @@ -103,8 +103,7 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor @Override public double transferEnergyToAcceptor(ForgeDirection side, double amount) { - int needed = Math.min(acceptor.getMaxEnergyStored(side)-acceptor.getEnergyStored(side), Integer.MAX_VALUE); - int transferred = acceptor.receiveEnergy(side, Math.min(needed, toRF(amount)), false); + int transferred = acceptor.receiveEnergy(side, Math.min(Integer.MAX_VALUE, toRF(amount)), false); return fromRF(transferred); }