Fix jigsaw counting

This commit is contained in:
Daniel Mills 2021-01-11 17:04:40 -05:00
parent 68c55086cf
commit c95c4b5f7d
2 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ public class IrisJigsawPiece extends IrisRegistrant
} }
public int getMax3dDimension() { public int getMax3dDimension() {
return max2dDim.aquire(() -> { return max3dDim.aquire(() -> {
try { try {
BlockVector v = IrisObject.sampleSize(getLoader().getObjectLoader().findFile(getObject())); BlockVector v = IrisObject.sampleSize(getLoader().getObjectLoader().findFile(getObject()));
return Math.max(Math.max(v.getBlockX(), v.getBlockZ()), v.getBlockY()); return Math.max(Math.max(v.getBlockX(), v.getBlockZ()), v.getBlockY());
@ -61,7 +61,7 @@ public class IrisJigsawPiece extends IrisRegistrant
e.printStackTrace(); e.printStackTrace();
} }
return 0; return -1;
}); });
} }

View File

@ -95,7 +95,7 @@ public class IrisJigsawStructure extends IrisRegistrant
max = Math.max(max, getLoader().getJigsawPieceLoader().load(i).getMax3dDimension()); max = Math.max(max, getLoader().getJigsawPieceLoader().load(i).getMax3dDimension());
} }
return max; return max * (((getMaxDepth() + 1) * 2) + 1);
}); });
} }
} }