Skip to content

Commit 048e7f7

Browse files
committed
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: LeoMinecraftModding/eternal-starlight#82
1 parent 18dac0d commit 048e7f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

neoforge/src/main/java/org/embeddedt/modernfix/neoforge/dynresources/ModelBakeEventHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ private enum UniverseVisibility {
5555
EVERYTHING
5656
}
5757
private static final Map<String, UniverseVisibility> MOD_VISIBILITY_CONFIGURATION = ImmutableMap.<String, UniverseVisibility>builder()
58+
.put("eternal_starlight", UniverseVisibility.SELF_AND_DEPS) // needed as a mitigation until https://github.com/LeoMinecraftModding/eternal-starlight/pull/82 is merged
5859
.build();
5960
private final Map<ModelResourceLocation, BakedModel> modelRegistry;
6061
private final Set<ModelResourceLocation> topLevelModelLocations;

0 commit comments

Comments
 (0)