add force place option to IrisJigsawStructure

This commit is contained in:
Julian Krings committed 2025-01-02 12:33:59 +01:00
1 parent d9681edf62
commit c16e65f0a8
2 files changed
+4 -1

No files matched your search

@@ -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();
@@ -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) {