mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 10:12:53 +00:00
Fix jigsaw counting
This commit is contained in:
parent
68c55086cf
commit
c95c4b5f7d
@ -53,7 +53,7 @@ public class IrisJigsawPiece extends IrisRegistrant
|
||||
}
|
||||
|
||||
public int getMax3dDimension() {
|
||||
return max2dDim.aquire(() -> {
|
||||
return max3dDim.aquire(() -> {
|
||||
try {
|
||||
BlockVector v = IrisObject.sampleSize(getLoader().getObjectLoader().findFile(getObject()));
|
||||
return Math.max(Math.max(v.getBlockX(), v.getBlockZ()), v.getBlockY());
|
||||
@ -61,7 +61,7 @@ public class IrisJigsawPiece extends IrisRegistrant
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
return 0;
|
||||
return -1;
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -95,7 +95,7 @@ public class IrisJigsawStructure extends IrisRegistrant
|
||||
max = Math.max(max, getLoader().getJigsawPieceLoader().load(i).getMax3dDimension());
|
||||
}
|
||||
|
||||
return max;
|
||||
return max * (((getMaxDepth() + 1) * 2) + 1);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user