minor fixes for #1869
This commit is contained in:
parent
efcabd31a1
commit
cf393474ef
3 changed files with 3 additions and 5 deletions
|
@ -93,6 +93,7 @@ public class EntityRobot extends EntityLiving implements
|
|||
|
||||
ignoreFrustumCheck = true;
|
||||
laser.isVisible = false;
|
||||
entityCollisionReduction = 1F;
|
||||
|
||||
width = 0.5F;
|
||||
height = 0.5F;
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue