Water objects need flat water

- Single-piece structures stay forced but keep the river and pond exclusion
- Water-flagged objects skip footprints on dams, cascades, waterfalls or water at another head
- The provisional guard runs before any bore and throws an engine failure
- Saplings stay when a tree override is rejected or the terrain is still being planned
- Object paste reports a retry when the terrain is still being planned
- Tests cover structures over rivers, flat water, lava, bore ordering, explicit Y and saplings
This commit is contained in:
Brian Neumann-Fopiano committed 2026-11-02 05:19:02 -05:00
1 parent 2d52cc409e
commit 65d06ae83c
37 files changed
+777 -242

No files matched your search

@@ -33,6 +33,7 @@ import art.arcane.iris.studio.wand.WandSVC;
import art.arcane.iris.pack.IrisConverter;
import art.arcane.iris.studio.tree.TreePlausibilizeBatch;
import art.arcane.iris.generation.runtime.Engine;
import art.arcane.iris.generation.stream.ProvisionalAnswerException;
import art.arcane.iris.structure.object.IObjectPlacer;
import art.arcane.iris.generation.terrain.IrisDimension;
import art.arcane.iris.structure.object.IrisObject;
@@ -606,7 +607,14 @@ public class CommandObject implements DirectorExecutor {
// Block writes must run on the thread owning the target chunk; the undo log stays global.
final IrisObject placed = o;
if (!J.runAt(block, () -> {
placed.place(block.getBlockX(), block.getBlockY() + (int) placed.getCenter().getY(), block.getBlockZ(), createPlacer(block.getWorld(), futureChanges, null), placement, new RNG(), placed.getLoader());
try {
placed.place(block.getBlockX(), block.getBlockY() + (int) placed.getCenter().getY(), block.getBlockZ(), createPlacer(block.getWorld(), futureChanges, null), placement, new RNG(), placed.getLoader());
} catch (ProvisionalAnswerException provisional) {
commandSender.sendMessage(IrisLanguage.text(BukkitCommandMessagesExtended.COMMAND_OBJECT_PASTE_WAITS_FOR_TERRAIN_PLAN,
MessageArgument.untrusted("x", block.getBlockX()), MessageArgument.untrusted("y", block.getBlockY()),
MessageArgument.untrusted("z", block.getBlockZ())));
return;
}
J.runGlobal(() -> Iris.service(ObjectSVC.class).addChanges(futureChanges));
if (!edit) {