Add conformVisibility for mixin overwrites

We don't actually want to change the visibility of mixins when
overwriting them.

This reduces the surface area for mod conflicts.
This commit is contained in:
Spottedleaf
2024-05-29 01:35:45 -07:00
parent c8fec9d3ac
commit b6a8fed850
2 changed files with 6 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ public abstract class WorldGenRegionMixin implements WorldGenLevel {
public abstract ChunkAccess getChunk(int i, int j);
/**
* @reason During feature generation, light data is not initialised and will always return 15 in Starlight. Vanilla
* During feature generation, light data is not initialised and will always return 15 in Starlight. Vanilla
* can possibly return 0 if partially initialised, which allows some mushroom blocks to generate.
* In general, the brightness value from the light engine should not be used until the chunk is ready. To emulate
* Vanilla behavior better, we return 0 as the brightness during world gen unless the target chunk is finished
@@ -32,7 +32,7 @@ public abstract class WorldGenRegionMixin implements WorldGenLevel {
}
/**
* @reason See above
* See above
* @author Spottedleaf
*/
@Override

View File

@@ -106,5 +106,8 @@
],
"injectors": {
"defaultRequire": 1
}
},
"overwrites": {
"conformVisibility": true
}
}