babe
This commit is contained in:
parent
d2ad15b79f
commit
28fd9581bc
@ -174,9 +174,6 @@ public interface MovementHelper extends ActionCosts, Helper {
|
|||||||
if (avoidBreaking(position)) {
|
if (avoidBreaking(position)) {
|
||||||
return COST_INF;
|
return COST_INF;
|
||||||
}
|
}
|
||||||
//if (!Baritone.allowBreakOrPlace) {
|
|
||||||
// return COST_INF;
|
|
||||||
//}
|
|
||||||
double m = Blocks.CRAFTING_TABLE.equals(block) ? 10 : 1;
|
double m = Blocks.CRAFTING_TABLE.equals(block) ? 10 : 1;
|
||||||
return m / ts.getStrVsBlock(state, position);
|
return m / ts.getStrVsBlock(state, position);
|
||||||
}
|
}
|
||||||
|
@ -140,6 +140,7 @@ public class MovementTraverse extends Movement {
|
|||||||
isDoorActuallyBlockingUs = true;
|
isDoorActuallyBlockingUs = true;
|
||||||
}
|
}
|
||||||
if (isDoorActuallyBlockingUs) {
|
if (isDoorActuallyBlockingUs) {
|
||||||
|
state.setTarget(new MovementState.MovementTarget(Utils.calcRotationFromVec3d(playerHead(), Utils.calcCenterFromCoords(positionsToBreak[0], world()))));
|
||||||
state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true);
|
state.setInput(InputOverrideHandler.Input.CLICK_RIGHT, true);
|
||||||
return state;
|
return state;
|
||||||
}
|
}
|
||||||
|
@ -83,7 +83,6 @@ public final class Utils {
|
|||||||
if (b.getBlock() instanceof BlockFire) {//look at bottom of fire when putting it out
|
if (b.getBlock() instanceof BlockFire) {//look at bottom of fire when putting it out
|
||||||
yDiff = 0;
|
yDiff = 0;
|
||||||
}
|
}
|
||||||
System.out.println(xDiff + " " + yDiff + " " + zDiff);
|
|
||||||
return new Vec3d(
|
return new Vec3d(
|
||||||
orig.getX() + xDiff,
|
orig.getX() + xDiff,
|
||||||
orig.getY() + yDiff,
|
orig.getY() + yDiff,
|
||||||
|
Loading…
Reference in New Issue
Block a user