replace
This commit is contained in:
@@ -102,6 +102,6 @@ public class ActionClimb extends ActionPlaceOrBreak {
|
||||
//once we are pointing the right way and moving, start jumping
|
||||
//this is slightly more efficient because otherwise we might start jumping before moving, and fall down without moving onto the block we want to jump onto
|
||||
//also wait until we are close enough, because we might jump and hit our head on an adjacent block
|
||||
return Minecraft.getMinecraft().player.getPosition0().equals(to);
|
||||
return Baritone.playerFeet.equals(to);
|
||||
}
|
||||
}
|
||||
|
@@ -35,6 +35,6 @@ public class ActionDescend extends ActionPlaceOrBreak {
|
||||
@Override
|
||||
protected boolean tick0() {//basically just hold down W until we are where we want to be
|
||||
MovementManager.moveTowardsBlock(to);
|
||||
return Minecraft.getMinecraft().player.getPosition0().equals(to);
|
||||
return Baritone.playerFeet.equals(to);
|
||||
}
|
||||
}
|
||||
|
@@ -31,6 +31,6 @@ public class ActionDescendThree extends ActionPlaceOrBreak {
|
||||
@Override
|
||||
protected boolean tick0() {//basically just hold down W until we are where we want to be
|
||||
MovementManager.moveTowardsBlock(to);
|
||||
return Minecraft.getMinecraft().player.getPosition0().equals(to);
|
||||
return Baritone.playerFeet.equals(to);
|
||||
}
|
||||
}
|
||||
|
@@ -31,6 +31,6 @@ public class ActionDescendTwo extends ActionPlaceOrBreak {
|
||||
@Override
|
||||
protected boolean tick0() {//basically just hold down W until we are where we want to be
|
||||
MovementManager.moveTowardsBlock(to);
|
||||
return Minecraft.getMinecraft().player.getPosition0().equals(to);
|
||||
return Baritone.playerFeet.equals(to);
|
||||
}
|
||||
}
|
||||
|
@@ -29,7 +29,7 @@ public class ActionFall extends ActionPlaceOrBreak {
|
||||
if (numTicks > 10) {
|
||||
MovementManager.moveTowardsBlock(to);
|
||||
}
|
||||
return Minecraft.getMinecraft().player.getPosition0().equals(to);
|
||||
return Baritone.playerFeet.equals(to);
|
||||
}
|
||||
@Override
|
||||
protected double calculateCost(ToolSet ts) {
|
||||
|
@@ -43,7 +43,7 @@ public class ActionWalkDiagonal extends ActionPlaceOrBreak {
|
||||
if (MovementManager.forward && !MovementManager.backward) {
|
||||
Minecraft.getMinecraft().player.setSprinting(true);
|
||||
}
|
||||
return to.equals(Minecraft.getMinecraft().player.getPosition0());
|
||||
return to.equals(Baritone.playerFeet);
|
||||
}
|
||||
@Override
|
||||
protected double calculateCost(ToolSet ts) {
|
||||
|
Reference in New Issue
Block a user