From e9e7d4b6c648ba8d09a1d5ac79d2760c7fd9186c Mon Sep 17 00:00:00 2001 From: Hea3veN Date: Sat, 28 Mar 2015 09:31:39 -0300 Subject: [PATCH] fix en error in the planter when path length == 1 --- common/buildcraft/robotics/boards/BoardRobotPlanter.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/buildcraft/robotics/boards/BoardRobotPlanter.java b/common/buildcraft/robotics/boards/BoardRobotPlanter.java index 166bf5ad..c267bc42 100644 --- a/common/buildcraft/robotics/boards/BoardRobotPlanter.java +++ b/common/buildcraft/robotics/boards/BoardRobotPlanter.java @@ -127,7 +127,9 @@ public class BoardRobotPlanter extends RedstoneBoardRobot { AIRobotSearchRandomBlock searchAI = (AIRobotSearchRandomBlock) ai; if (searchAI.takeResource()) { blockFound = searchAI.blockFound; - searchAI.path.removeLast(); + if (searchAI.path.size() > 1){ + searchAI.path.removeLast(); + } startDelegateAI(new AIRobotGotoBlock(robot, searchAI.path)); } else { startDelegateAI(new AIRobotGotoSleep(robot));