speed up cache stuff
This commit is contained in:
parent
fe47245b73
commit
b6c91b5062
10
src/main/java/baritone/cache/CachedChunk.java
vendored
10
src/main/java/baritone/cache/CachedChunk.java
vendored
@ -91,16 +91,6 @@ public final class CachedChunk {
|
||||
Blocks.VINE
|
||||
);
|
||||
|
||||
public static boolean tracked(Block block) {
|
||||
for (Block tracked : BLOCKS_TO_KEEP_TRACK_OF) {
|
||||
if (tracked == block) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The size of the chunk data in bits. Equal to 16 KiB.
|
||||
|
@ -318,7 +318,7 @@ public final class MineProcess extends BaritoneProcessHelper implements IMinePro
|
||||
List<Block> untracked = new ArrayList<>();
|
||||
for (BlockOptionalMeta bom : filter.blocks()) {
|
||||
Block block = bom.getBlock();
|
||||
if (CachedChunk.tracked(block)) {
|
||||
if (CachedChunk.BLOCKS_TO_KEEP_TRACK_OF.contains(block)) {
|
||||
BetterBlockPos pf = ctx.baritone.getPlayerContext().playerFeet();
|
||||
|
||||
locs.addAll(ctx.worldData.getCachedWorld().getLocationsOf(
|
||||
|
Loading…
Reference in New Issue
Block a user