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:
parent
a14eb3b55f
commit
1015627d07
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ public class AIRobotRecharge extends AIRobot {
|
||||||
public void update() {
|
public void update() {
|
||||||
PipeTransportPower powerProvider = (PipeTransportPower) ((DockingStation) robot.getDockingStation()).getPipe().pipe.transport;
|
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);
|
powerProvider.requestEnergy(robot.getDockingStation().side(), amount);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue