fixed crafter robot not reseting

This commit is contained in:
SpaceToad 2014-08-18 08:49:02 +02:00
parent 1cacc0cd67
commit 846e186c9a

View file

@ -126,11 +126,14 @@ public class BoardRobotCrafter extends RedstoneBoardRobot {
if (ai.success()) {
startDelegateAI(new AIRobotUnload(robot));
} else {
robot.releaseResources();
currentRequest = null;
startDelegateAI(new AIRobotGotoSleep(robot));
}
} else if (ai instanceof AIRobotSearchStackRequest) {
if (!ai.success()) {
craftingBlacklist.clear();
currentRequest = null;
startDelegateAI(new AIRobotGotoSleep(robot));
} else {
currentRequest = ((AIRobotSearchStackRequest) ai).request;