Merge branch '6.4.x' of github.com:BuildCraft/BuildCraft into 6.4.x
This commit is contained in:
commit
a210ddd349
1 changed files with 5 additions and 4 deletions
|
@ -146,10 +146,11 @@ public class AIRobotFetchItem extends AIRobot {
|
|||
|
||||
if (target != null) {
|
||||
BoardRobotPicker.targettedItems.add(target.getEntityId());
|
||||
|
||||
startDelegateAI(new AIRobotGotoBlock(robot, (int) Math.floor(target.posX),
|
||||
(int) Math.floor(target.posY), (int) Math.floor(target.posZ)));
|
||||
|
||||
if (Math.floor(target.posX) != Math.floor(robot.posX) || Math.floor(target.posY) != Math.floor(robot.posY)
|
||||
|| Math.floor(target.posZ) != Math.floor(robot.posZ)) {
|
||||
startDelegateAI(new AIRobotGotoBlock(robot, (int) Math.floor(target.posX),
|
||||
(int) Math.floor(target.posY), (int) Math.floor(target.posZ)));
|
||||
}
|
||||
} else {
|
||||
// No item was found, terminate this AI
|
||||
terminate();
|
||||
|
|
Loading…
Reference in a new issue