Fix returning simulated IC2 power acceptance as EU instead of J. Fixes #5450

This commit is contained in:
pupnewfster committed 2019-05-03 11:58:24 -04:00
1 parent faef15691c
commit 20c426d03e
1 file changed
+1 -1
@@ -142,7 +142,7 @@ public abstract class EnergyAcceptorWrapper implements IStrictEnergyAcceptor {
double toTransfer = Math.min(acceptor.getDemandedEnergy(), toEU(amount));
if (simulate) {
//IC2 has no built in way to simulate, so we have to calculate it ourselves
return toTransfer;
return fromEU(toTransfer);
}
double rejects = acceptor.injectEnergy(side, toTransfer, 0);