From 4e1491a0ccad53791b85778608b9667990975cb2 Mon Sep 17 00:00:00 2001 From: Brady Date: Fri, 26 Oct 2018 13:30:16 -0500 Subject: [PATCH] Rename xrayFor to searchWorld --- src/main/java/baritone/behavior/MineBehavior.java | 4 ++-- src/main/java/baritone/utils/ExampleBaritoneControl.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/baritone/behavior/MineBehavior.java b/src/main/java/baritone/behavior/MineBehavior.java index 81a18ef7..bdc44320 100644 --- a/src/main/java/baritone/behavior/MineBehavior.java +++ b/src/main/java/baritone/behavior/MineBehavior.java @@ -129,7 +129,7 @@ public final class MineBehavior extends Behavior implements IMineBehavior, Helpe if (Baritone.settings().legitMine.get()) { return; } - List locs = xrayFor(mining, 64); + List 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 xrayFor(List mining, int max) { + public List searchWorld(List mining, int max) { List locs = new ArrayList<>(); List uninteresting = new ArrayList<>(); //long b = System.currentTimeMillis(); diff --git a/src/main/java/baritone/utils/ExampleBaritoneControl.java b/src/main/java/baritone/utils/ExampleBaritoneControl.java index 77132e82..f1f70c77 100644 --- a/src/main/java/baritone/utils/ExampleBaritoneControl.java +++ b/src/main/java/baritone/utils/ExampleBaritoneControl.java @@ -382,7 +382,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper { return true; } } else { - List locs = MineBehavior.INSTANCE.xrayFor(Collections.singletonList(block), 64); + List locs = MineBehavior.INSTANCE.searchWorld(Collections.singletonList(block), 64); if (locs.isEmpty()) { logDirect("No locations for " + mining + " known, cancelling"); return true;