Fixed bug with Quartz Fiber Simulations.
This commit is contained in:
parent
1929579df0
commit
08e232ec63
1 changed files with 8 additions and 0 deletions
8
me/cache/EnergyGridCache.java
vendored
8
me/cache/EnergyGridCache.java
vendored
|
@ -341,6 +341,14 @@ public class EnergyGridCache implements IEnergyGrid
|
|||
if ( mode == Actionable.SIMULATE )
|
||||
{
|
||||
extractedPower += simulateExtract( extractedPower, amt );
|
||||
|
||||
if ( extractedPower < amt )
|
||||
{
|
||||
Iterator<IEnergyGridProvider> i = gproviders.iterator();
|
||||
while (extractedPower < amt && i.hasNext())
|
||||
extractedPower += i.next().extractAEPower( amt - extractedPower, mode, seen );
|
||||
}
|
||||
|
||||
return extractedPower;
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue