This commit is contained in:
Leijurv 2018-08-15 06:50:43 -07:00
parent d2ad15b79f
commit 28fd9581bc
No known key found for this signature in database
GPG Key ID: 44A3EA646EADAC6A
3 changed files with 2 additions and 5 deletions

View File

@ -174,9 +174,6 @@ public interface MovementHelper extends ActionCosts, Helper {
if (avoidBreaking(position)) {
return COST_INF;
}
//if (!Baritone.allowBreakOrPlace) {
// return COST_INF;
//}
double m = Blocks.CRAFTING_TABLE.equals(block) ? 10 : 1;
return m / ts.getStrVsBlock(state, position);
}

View File

@ -140,6 +140,7 @@ public class MovementTraverse extends Movement {
isDoorActuallyBlockingUs = true;
}
if (isDoorActuallyBlockingUs) {
state.setTarget(new MovementState.MovementTarget(Utils.calcRotationFromVec3d(playerHead(), Utils.calcCenterFromCoords(positionsToBreak[0], world()))));
state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true);
return state;
}

View File

@ -83,7 +83,6 @@ public final class Utils {
if (b.getBlock() instanceof BlockFire) {//look at bottom of fire when putting it out
yDiff = 0;
}
System.out.println(xDiff + " " + yDiff + " " + zDiff);
return new Vec3d(
orig.getX() + xDiff,
orig.getY() + yDiff,