Merge pull request #1026 from CocoTheOwner/jigsawRotationFix

Disable initial rotation if set to true
This commit is contained in:
Brian Fopiano 2023-09-17 13:47:51 -04:00 committed by GitHub
commit 99d3dba440
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -256,7 +256,7 @@ public class PlannedStructure {
} }
private void generateStartPiece() { private void generateStartPiece() {
pieces.add(new PlannedPiece(this, position, getData().getJigsawPieceLoader().load(rng.pick(getStructure().getPieces())), 0, rng.nextInt(4), 0)); pieces.add(new PlannedPiece(this, position, getData().getJigsawPieceLoader().load(rng.pick(getStructure().getPieces())), 0, getStructure().isDisableInitialRotation() ? 0 : rng.nextInt(4), 0));
} }
private void generateTerminators() { private void generateTerminators() {

View File

@ -62,6 +62,9 @@ public class IrisJigsawStructure extends IrisRegistrant {
@Desc("Force Y to a specific value") @Desc("Force Y to a specific value")
private int lockY = -1; private int lockY = -1;
@Desc("Set to true to prevent rotating the initial structure piece")
private boolean disableInitialRotation = false;
private transient AtomicCache<Integer> maxDimension = new AtomicCache<>(); private transient AtomicCache<Integer> maxDimension = new AtomicCache<>();
private void loadPool(String p, KList<String> pools, KList<String> pieces) { private void loadPool(String p, KList<String> pools, KList<String> pieces) {