This commit is contained in:
Leijurv
2021-08-17 16:04:17 -07:00
parent 02f5d4efbe
commit b608a8a1e0
2 changed files with 2 additions and 2 deletions

View File

@@ -115,7 +115,7 @@ public class PlaceOrderDependencyGraph {
}
private void sanityCheck() {
int[] test = new int[bounds().sizeX * bounds().sizeY * bounds().sizeZ * Face.NUM_FACES];
int[] test = new int[bounds().size * Face.NUM_FACES];
bounds().forEach(pos -> {
for (int face = 0; face < 6; face++) {
test[bitIndex(pos, Face.VALUES[face])]++;

View File

@@ -30,7 +30,7 @@ public class ReachabilityCache implements IReachabilityProvider {
playerPositionToBlock = new Long2ObjectOpenHashMap<>();
int maxReasonableCacheSize = overlay.bounds().size;
int[] cnt = {0};
overlay.forEachReal(blockPos -> { // by only iterating through real blocks, this will be a much faster and better option for sparse schematics (e.g. map art)
overlay.forEachReal(blockPos -> { // by only iterating through real blocks, this will be a much faster and better option for sparse schematics (e.g. staircased map art)
for (long offset : sphere.positions) {
long playerEyeVoxel = (blockPos + offset) & BetterBlockPos.POST_ADDITION_MASK;
if (overlay.bounds().inRangePos(playerEyeVoxel)) {