Core and adapters stop reading ObjectPlaceMode; tests for the place mode data

The jigsaw export and the Bukkit and modded structure commands ask the module (stampsPiecesWhereAssembled,
stampingStructurePieces) instead of comparing place modes. ObjectPlaceModeDataTest checks the data reproduces what the
stages decided by comparing modes; the object place mode pin stays identical.
This commit is contained in:
piexel committed 2026-10-10 03:54:40 +02:00
1 parent 0b3556f09c
commit 248a087c17
5 files changed
+89 -28

No files matched your search

@@ -18,7 +18,6 @@
package art.arcane.iris.core.commands;
import art.arcane.iris.builtin.anchor.ObjectPlaceMode;
import art.arcane.iris.engine.framework.structure.StructureResources;
import art.arcane.iris.engine.object.placement.IrisObjectPlacement;
import art.arcane.iris.Iris;
@@ -360,8 +359,7 @@ public class CommandStructure implements DirectorExecutor {
Engine targetEngine = targetGenerator == null ? null : targetGenerator.getEngine();
IObjectPlacer placer = CommandObject.createPlacer(targetWorld, future, targetEngine);
for (PlacedStructurePiece p : pieces) {
IrisObjectPlacement config = new IrisObjectPlacement();
config.setMode(ObjectPlaceMode.STRUCTURE_PIECE);
IrisObjectPlacement config = IrisObjectPlacement.stampingStructurePieces();
config.setRotation(p.getRotation());
config.getPlace().add(p.getObject().getLoadKey());
if (!s.getEdit().isEmpty()) {