refactor problematic area
This commit is contained in:
parent
c2adcdb051
commit
773ad89951
@ -110,8 +110,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe
|
|||||||
locationsCache = locs;
|
locationsCache = locs;
|
||||||
}
|
}
|
||||||
|
|
||||||
public GoalComposite coalesce(List<BlockPos> locs) {
|
public Goal coalesce(BlockPos loc, List<BlockPos> locs) {
|
||||||
return new GoalComposite(locs.stream().map(loc -> {
|
|
||||||
if (!Baritone.settings().forceInternalMining.get()) {
|
if (!Baritone.settings().forceInternalMining.get()) {
|
||||||
return new GoalTwoBlocks(loc);
|
return new GoalTwoBlocks(loc);
|
||||||
}
|
}
|
||||||
@ -131,7 +130,10 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe
|
|||||||
return new GoalTwoBlocks(loc);
|
return new GoalTwoBlocks(loc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}).toArray(Goal[]::new));
|
}
|
||||||
|
|
||||||
|
public GoalComposite coalesce(List<BlockPos> locs) {
|
||||||
|
return new GoalComposite(locs.stream().map(loc -> coalesce(loc, locs)).toArray(Goal[]::new));
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<BlockPos> scanFor(List<Block> mining, int max) {
|
public List<BlockPos> scanFor(List<Block> mining, int max) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user