crapton of performance improvements

This commit is contained in:
Leijurv
2019-03-04 21:20:13 -08:00
parent 71cb0f6d36
commit a73f5c1359
7 changed files with 21 additions and 19 deletions
@@ -376,7 +376,7 @@ public class ExampleBaritoneControl extends Behavior implements Helper {
}
if (msg.startsWith("find")) {
String blockType = msg.substring(4).trim();
LinkedList<BlockPos> locs = baritone.getWorldProvider().getCurrentWorld().getCachedWorld().getLocationsOf(blockType, 1, ctx.playerFeet().getX(), ctx.playerFeet().getZ(), 4);
ArrayList<BlockPos> locs = baritone.getWorldProvider().getCurrentWorld().getCachedWorld().getLocationsOf(blockType, 1, ctx.playerFeet().getX(), ctx.playerFeet().getZ(), 4);
logDirect("Have " + locs.size() + " locations");
for (BlockPos pos : locs) {
Block actually = BlockStateInterface.get(ctx, pos).getBlock();