Fixed Tesseract and Flux Duct support

This commit is contained in:
aidancbrady 2016-06-30 11:14:21 -04:00
parent 0b9a71162a
commit 8f8f1751ec

View file

@ -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);
}