misc
This commit is contained in:
@@ -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])]++;
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user