minor fixes for #1869

This commit is contained in:
SpaceToad 2014-06-08 12:46:17 +02:00
parent efcabd31a1
commit cf393474ef
3 changed files with 3 additions and 5 deletions

View file

@ -93,6 +93,7 @@ public class EntityRobot extends EntityLiving implements
ignoreFrustumCheck = true;
laser.isVisible = false;
entityCollisionReduction = 1F;
width = 0.5F;
height = 0.5F;

View file

@ -66,7 +66,7 @@ public class RobotAIMoveTo extends RobotAIBase {
new BlockIndex((int) Math.floor(robot.posX), (int) Math.floor(robot.posY),
(int) Math.floor(robot.posZ)),
new BlockIndex((int) Math.floor(dx), (int) Math.floor(dy), (int) Math.floor(dz)));
} else if (!pathSearch.isDone()) {
} else if (pathSearch.isDone()) {
path = pathSearch.getResult();
setNextInPath();
} else {

View file

@ -87,7 +87,6 @@ public class BoardRobotPicker implements IRedstoneBoardRobot<EntityRobot> {
scan(robot);
} else if (pickTime == -1) {
if (robot.currentAI.isDone()) {
robot.setLaserDestination((float) target.posX, (float) target.posY, (float) target.posZ);
pickTracker = new SafeTimeTracker(200);
pickTime = 0;
}
@ -160,9 +159,7 @@ public class BoardRobotPicker implements IRedstoneBoardRobot<EntityRobot> {
} else {
EntityItem item = (EntityItem) e;
if (inventoryInsert.inject(item.getEntityItem(),
ForgeDirection.UNKNOWN, false) > 0) {
if (inventoryInsert.inject(item.getEntityItem(), ForgeDirection.UNKNOWN, false) > 0) {
target = item;
targettedItems.add(e.getEntityId());
robot.isDocked = false;