mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-11-28 16:54:04 +00:00
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:
1 parent
43aafc743e
commit
621e0e65bc
11 files changed
+344
-41
No files matched your search
+2
-2
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user