Removed very angry code. Started feeding Codacy.

This commit is contained in:
0x22
2019-09-19 18:54:24 -04:00
parent e976224258
commit 6f2529c243
11 changed files with 21 additions and 17 deletions

View File

@@ -408,7 +408,8 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
this.filter = filter;
if (filter != null && !Baritone.settings().allowBreak.value) {
logDirect("Unable to mine when allowBreak is false!");
filter = null;
this.mine(quantity, (BlockOptionalMetaLookup) null);
return;
}
this.desiredQuantity = quantity;
this.knownOreLocations = new ArrayList<>();

View File

@@ -34,7 +34,6 @@ public class EmptyCommand extends Command {
@Override
protected void executed(String label, ArgConsumer args, Settings settings) {
;
}
@Override

View File

@@ -57,7 +57,7 @@ public class ExploreFilterCommand extends Command {
} catch (JsonSyntaxException e) {
throw new CommandInvalidStateException("Invalid JSON syntax");
} catch (Exception e) {
throw new RuntimeException(e);
throw new IllegalStateException(e);
}
logDirect(String.format("Explore filter applied. Inverted: %s", Boolean.toString(invert)));
}

View File

@@ -44,8 +44,8 @@ import net.minecraft.util.math.AxisAlignedBB;
import net.minecraft.util.math.Vec3i;
import java.awt.*;
import java.util.*;
import java.util.List;
import java.util.*;
import java.util.function.Function;
import java.util.stream.Stream;

View File

@@ -170,6 +170,9 @@ public class WaypointsCommand extends Command {
throw new CommandInvalidStateException("No waypoints found");
case 1:
waypoint = waypoints[0];
break;
default:
break;
}
}
if (waypoint == null) {