Filter how much of the model registry Eternal Starlight sees

Otherwise it loads every model, AND stores it in a map, defeating
the point of dynamic resources

Related: https://github.com/LeoMinecraftModding/eternal-starlight/pull/82
This commit is contained in:
embeddedt 2025-05-02 20:02:06 -04:00
parent 18dac0d949
commit 048e7f7e07
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -55,6 +55,7 @@ public class ModelBakeEventHelper {
EVERYTHING
}
private static final Map<String, UniverseVisibility> MOD_VISIBILITY_CONFIGURATION = ImmutableMap.<String, UniverseVisibility>builder()
.put("eternal_starlight", UniverseVisibility.SELF_AND_DEPS) // needed as a mitigation until https://github.com/LeoMinecraftModding/eternal-starlight/pull/82 is merged
.build();
private final Map<ModelResourceLocation, BakedModel> modelRegistry;
private final Set<ModelResourceLocation> topLevelModelLocations;