Fixed bug with Quartz Fiber Simulations.

This commit is contained in:
AlgorithmX2 2014-01-30 18:49:50 -06:00
parent 1929579df0
commit 08e232ec63

View file

@ -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