Merge branch '6.4.x' of github.com:BuildCraft/BuildCraft into 6.4.x

This commit is contained in:
asiekierka 2015-03-07 23:24:45 +01:00
commit a210ddd349

View file

@ -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();