make robots actually use energy, fix a massive bug - only in 6.4.x, though, as i do not want to break most robot builds in a patch release

This commit is contained in:
asiekierka 2015-01-22 15:33:39 +01:00
parent a14eb3b55f
commit 1015627d07

View file

@ -37,7 +37,7 @@ public class AIRobotRecharge extends AIRobot {
public void update() {
PipeTransportPower powerProvider = (PipeTransportPower) ((DockingStation) robot.getDockingStation()).getPipe().pipe.transport;
int amount = robot.getBattery().receiveEnergy(1000, false);
int amount = robot.getBattery().receiveEnergy(1000, true);
powerProvider.requestEnergy(robot.getDockingStation().side(), amount);