Fix wrong location type being passed to model registry

This commit is contained in:
embeddedt 2024-06-14 19:15:16 -04:00
parent 2697a8f358
commit 1b6075562c
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -124,7 +124,7 @@ public class ModelBakeEventHelper {
if(modIdsToInclude.stream().noneMatch(INCOMPATIBLE_MODS::contains))
return createWarningRegistry(modId);
Set<ModelResourceLocation> ourModelLocations = Sets.filter(this.topLevelModelLocations, loc -> modIdsToInclude.contains(loc.id().getNamespace()));
BakedModel missingModel = modelRegistry.get(ModelBakery.MISSING_MODEL_LOCATION);
BakedModel missingModel = modelRegistry.get(ModelBakery.MISSING_MODEL_VARIANT);
return new ForwardingMap<ModelResourceLocation, BakedModel>() {
@Override
protected Map<ModelResourceLocation, BakedModel> delegate() {