Fixed Tesseract and Flux Duct support
This commit is contained in:
parent
0b9a71162a
commit
8f8f1751ec
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue