Merge 1.19.2 into 1.20
This commit is contained in:
commit
ebb4f26777
|
|
@ -43,8 +43,9 @@ public class ModelBakeEventHelper {
|
|||
this.topLevelModelLocations = new HashSet<>(modelRegistry.keySet());
|
||||
// Skip going through ModelLocationCache because most of the accesses will be misses
|
||||
for(Block block : ForgeRegistries.BLOCKS) {
|
||||
ResourceLocation name = block.delegate.name();
|
||||
for(BlockState state : block.getStateDefinition().getPossibleStates()) {
|
||||
topLevelModelLocations.add(BlockModelShaper.stateToModelLocation(state));
|
||||
topLevelModelLocations.add(BlockModelShaper.stateToModelLocation(name, state));
|
||||
}
|
||||
}
|
||||
ForgeRegistries.ITEMS.getKeys().forEach(key -> topLevelModelLocations.add(new ModelResourceLocation(key, "inventory")));
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user