This commit is contained in:
Leijurv
2018-08-01 11:38:46 -04:00
parent f559e45f9c
commit 38a7b72570
18 changed files with 76 additions and 380 deletions

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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);
}
}

View File

@@ -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) {

View File

@@ -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) {