fix goal offset logic
This commit is contained in:
parent
2cac115211
commit
21568f593a
@ -113,16 +113,16 @@ public final class MineBehavior extends Behavior implements Helper {
|
|||||||
return new GoalTwoBlocks(loc);
|
return new GoalTwoBlocks(loc);
|
||||||
}
|
}
|
||||||
|
|
||||||
boolean noUp = locs.contains(loc.up()) && !(Baritone.settings().internalMiningAirException.get() && BlockStateInterface.getBlock(loc.up()) == Blocks.AIR);
|
boolean upwardGoal = locs.contains(loc.up()) || (Baritone.settings().internalMiningAirException.get() && BlockStateInterface.getBlock(loc.up()) == Blocks.AIR);
|
||||||
boolean noDown = locs.contains(loc.down()) && !(Baritone.settings().internalMiningAirException.get() && BlockStateInterface.getBlock(loc.up()) == Blocks.AIR);
|
boolean downwardGoal = locs.contains(loc.down()) || (Baritone.settings().internalMiningAirException.get() && BlockStateInterface.getBlock(loc.up()) == Blocks.AIR);
|
||||||
if (noUp) {
|
if (upwardGoal) {
|
||||||
if (noDown) {
|
if (downwardGoal) {
|
||||||
return new GoalTwoBlocks(loc);
|
return new GoalTwoBlocks(loc);
|
||||||
} else {
|
} else {
|
||||||
return new GoalBlock(loc);
|
return new GoalBlock(loc);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (noDown) {
|
if (downwardGoal) {
|
||||||
return new GoalBlock(loc.down());
|
return new GoalBlock(loc.down());
|
||||||
} else {
|
} else {
|
||||||
return new GoalTwoBlocks(loc);
|
return new GoalTwoBlocks(loc);
|
||||||
|
Loading…
Reference in New Issue
Block a user