fix request system errors
This commit is contained in:
parent
e2a0a7eab4
commit
ae41d1462d
2 changed files with 7 additions and 0 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue