fixed else statement, for #1877

This commit is contained in:
SpaceToad 2014-06-28 14:14:32 +02:00
parent ada0ab4311
commit 16b2dc311e

View file

@ -76,7 +76,7 @@ public class BoardRobotPicker extends RedstoneBoardRobot {
if (ai instanceof AIRobotFetchItem) {
if (((AIRobotFetchItem) ai).noItemPicked) {
startDelegateAI(new AIRobotGotoDock(robot, (DockingStation) robot.getLinkedStation()));
} if (((AIRobotFetchItem) ai).target != null) {
} else if (((AIRobotFetchItem) ai).target != null) {
// if we could get an item, let's try to get another one
startDelegateAI(new AIRobotFetchItem(robot, range, stackFilter, robot.getAreaToWork()));
} else {