More intelligent funneling demand.

This commit is contained in:
AlgorithmX2
2014-06-03 20:33:04 -05:00
parent 09ef3cc231
commit 885bdbf9d5
7 changed files with 24 additions and 10 deletions
+14
View File
@@ -57,6 +57,20 @@ public class TileEnergyAcceptor extends AENetworkPowerTile
}
};
@Override
protected double getFunnelPowerDemand(double maxRequired)
{
try
{
IEnergyGrid grid = gridProxy.getEnergy();
return grid.getEnergyDemand( maxRequired );
}
catch (GridAccessException e)
{
return super.getFunnelPowerDemand( maxRequired );
}
}
@Override
protected double funnelPowerIntoStorage(double newPower, Actionable mode)
{