Skip to content

Commit ebb4f26

Browse files
committed
Merge 1.19.2 into 1.20
2 parents 280d14a + 571d6c6 commit ebb4f26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ public ModelBakeEventHelper(Map<ResourceLocation, BakedModel> modelRegistry) {
4343
this.topLevelModelLocations = new HashSet<>(modelRegistry.keySet());
4444
// Skip going through ModelLocationCache because most of the accesses will be misses
4545
for(Block block : ForgeRegistries.BLOCKS) {
46+
ResourceLocation name = block.delegate.name();
4647
for(BlockState state : block.getStateDefinition().getPossibleStates()) {
47-
topLevelModelLocations.add(BlockModelShaper.stateToModelLocation(state));
48+
topLevelModelLocations.add(BlockModelShaper.stateToModelLocation(name, state));
4849
}
4950
}
5051
ForgeRegistries.ITEMS.getKeys().forEach(key -> topLevelModelLocations.add(new ModelResourceLocation(key, "inventory")));

0 commit comments

Comments
 (0)