add force place option to IrisJigsawStructure

This commit is contained in:
Julian Krings 2024-12-30 12:40:18 +01:00
parent d9681edf62
commit c16e65f0a8
No known key found for this signature in database
GPG Key ID: 208C6E08C3B718D2
2 changed files with 4 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class PlannedStructure {
this.structure = structure;
this.position = position;
this.rng = rng;
this.forcePlace = forcePlace;
this.forcePlace = forcePlace || structure.isForcePlace();
this.data = structure.getLoader();
generateStartPiece();

View File

@ -74,6 +74,9 @@ public class IrisJigsawStructure extends IrisRegistrant {
@Desc("The minecraft key to use when creating treasure maps")
private String structureKey = null;
@Desc("Force Place the whole structure")
private boolean forcePlace = false;
private transient AtomicCache<Integer> maxDimension = new AtomicCache<>();
private void loadPool(String p, KList<String> pools, KList<String> pieces) {