mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Fix returning simulated IC2 power acceptance as EU instead of J. Fixes #5450
This commit is contained in:
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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user