Rename xrayFor to searchWorld

This commit is contained in:
Brady 2018-10-26 13:30:16 -05:00
parent 55091154c4
commit 4e1491a0cc
No known key found for this signature in database
GPG Key ID: 73A788379A197567
2 changed files with 3 additions and 3 deletions

View File

@ -129,7 +129,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe
if (Baritone.settings().legitMine.get()) {
return;
}
List<BlockPos> locs = xrayFor(mining, 64);
List<BlockPos> locs = searchWorld(mining, 64);
if (locs.isEmpty()) {
logDebug("No locations for " + mining + " known, cancelling");
mine(0, (String[]) null);
@ -160,7 +160,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe
}
}
public List<BlockPos> xrayFor(List<Block> mining, int max) {
public List<BlockPos> searchWorld(List<Block> mining, int max) {
List<BlockPos> locs = new ArrayList<>();
List<Block> uninteresting = new ArrayList<>();
//long b = System.currentTimeMillis();

View File

@ -382,7 +382,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
return true;
}
} else {
List<BlockPos> locs = MineBehavior.INSTANCE.xrayFor(Collections.singletonList(block), 64);
List<BlockPos> locs = MineBehavior.INSTANCE.searchWorld(Collections.singletonList(block), 64);
if (locs.isEmpty()) {
logDirect("No locations for " + mining + " known, cancelling");
return true;