Apply vanilla structure hooks on every platform: ModuleVanillaStructures asks the pack's hooks once per engine, structure and snapshot, and NativeStructureGenerationPolicy takes suppression and module placement from them instead of reading the structure locator; also render module enums in studio without failing

This commit is contained in:
piexel committed 2026-10-09 14:41:06 +02:00
1 parent 43aafc743e
commit 621e0e65bc
11 files changed
+344 -41

No files matched your search

@@ -118,7 +118,7 @@ public class IrisStructureLocateCommandContractTest {
@Test
public void unregisteredDiagnosticExplainsEveryRejectedRoute() {
assertEquals(
"Native structure minecraft:village is disabled by this dimension's importedStructures settings.",
"Native structure minecraft:village is disabled by this dimension's importedStructures settings or a module of the pack.",
CommandFind.describeStructureExclusion(
CommandFind.StructureLookupRoute.POLICY_DISABLED, "minecraft:village",
NativeStructureGenerationStatus.DISABLED_BY_PACK,
@@ -214,7 +214,7 @@ public class IrisStructureLocateCommandContractTest {
@Test
public void findNativePolicyMessagesMatchModdedDiagnostics() {
assertEquals(
"Native structure minecraft:village_plains is disabled by this dimension's importedStructures settings.",
"Native structure minecraft:village_plains is disabled by this dimension's importedStructures settings or a module of the pack.",
NativeStructureGenerationPolicy.generationStatusMessage(
"minecraft:village_plains", NativeStructureGenerationStatus.DISABLED_BY_PACK));
assertEquals(