fix request system errors

This commit is contained in:
Hea3veN 2015-07-27 19:52:26 -03:00 committed by Adrian
parent e2a0a7eab4
commit ae41d1462d
2 changed files with 7 additions and 0 deletions

View file

@ -22,6 +22,10 @@ public class ResourceIdRequest extends ResourceId {
private ForgeDirection side;
private int slot;
public ResourceIdRequest() {
}
public ResourceIdRequest(DockingStation station, int slot) {
index = station.index();
side = station.side();

View file

@ -45,6 +45,9 @@ public class AIRobotSearchStation extends AIRobot {
DockingStation potentialStation = null;
for (DockingStation station : robot.getRegistry().getStations()) {
if (!station.isInitialized()) {
continue;
}
if (station.isTaken() && station.robotIdTaking() != robot.getRobotId()) {
continue;