mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-06-17 22:32:04 +00:00
Fix jigsaw counting
This commit is contained in:
@@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user