Contain failed placements

- Only touch vine faces in getAllowedFaces, so a ceiling vine never asks Bukkit for DOWN
- Add GenerationFailures.skipPlacement: engine failures rethrow, anything else is one warning per 60s per key with a suppressed count
- Count generation sessions, IOException and UncheckedIOException as engine failures
- Contain decorators, water plants, deposits, post and perfection columns, custom blocks, waterlogging fixes and structure pieces at their own scope
- Move object, floating, rotation and surface layer catches to the terse warning
- REPLACE_SOURCE structure failures still fail the chunk
- Add probeFaultSurface to generationOrderProbe for skip determinism runs
This commit is contained in:
Brian Fopiano committed 2026-11-04 02:24:46 -05:00
1 parent 343da05e3d
commit ebe4aa1e41
26 files changed
+583 -233

No files matched your search

@@ -66,8 +66,14 @@ public final class StubPlatform implements IrisPlatform {
}
public static void bindGenerationStateHandlers() {
String faultSurface = System.getProperty("iris.probe.faultSurface", "");
DecoratorPlatformHooks.bind((state, hunk, rX, rZ, x, y, z, mantle) -> state,
(surface, upward) -> surface.isOccluding());
(surface, upward) -> {
if (!faultSurface.isEmpty() && surface.key().startsWith(faultSurface)) {
throw new IllegalArgumentException("Probe fault on " + surface.key());
}
return surface.isOccluding();
});
IrisObjectRotation.bindPlatformRotator(StubPlatform::rotateState);
BlockDataMergeSupport.bindPlatformMerger(StubPlatform::mergeStates);
TileData.bindPlatformReader(StubTileData::read);