File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
forge/src/main/java/org/embeddedt/modernfix/forge/dynresources Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212import net .minecraft .client .resources .model .ModelResourceLocation ;
1313import net .minecraft .core .registries .BuiltInRegistries ;
1414import net .minecraft .resources .ResourceLocation ;
15+ import net .minecraft .world .level .block .Block ;
1516import net .minecraft .world .level .block .state .BlockState ;
1617import net .minecraftforge .fml .ModContainer ;
1718import net .minecraftforge .fml .ModList ;
@@ -59,7 +60,7 @@ private enum UniverseVisibility {
5960 private final MutableGraph <String > dependencyGraph ;
6061 public ModelBakeEventHelper (Map <ResourceLocation , BakedModel > modelRegistry ) {
6162 this .modelRegistry = modelRegistry ;
62- this .topLevelModelLocations = new ObjectLinkedOpenHashSet <>();
63+ this .topLevelModelLocations = new ObjectLinkedOpenHashSet <>(Block . BLOCK_STATE_REGISTRY . size () + BuiltInRegistries . ITEM . size () );
6364 // Skip going through ModelLocationCache because most of the accesses will be misses
6465 BuiltInRegistries .BLOCK .entrySet ().forEach (entry -> {
6566 var location = entry .getKey ().location ();
You can’t perform that action at this time.
0 commit comments