Fix wrong location type being passed to model registry
This commit is contained in:
parent
2697a8f358
commit
1b6075562c
|
|
@ -124,7 +124,7 @@ public class ModelBakeEventHelper {
|
||||||
if(modIdsToInclude.stream().noneMatch(INCOMPATIBLE_MODS::contains))
|
if(modIdsToInclude.stream().noneMatch(INCOMPATIBLE_MODS::contains))
|
||||||
return createWarningRegistry(modId);
|
return createWarningRegistry(modId);
|
||||||
Set<ModelResourceLocation> ourModelLocations = Sets.filter(this.topLevelModelLocations, loc -> modIdsToInclude.contains(loc.id().getNamespace()));
|
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>() {
|
return new ForwardingMap<ModelResourceLocation, BakedModel>() {
|
||||||
@Override
|
@Override
|
||||||
protected Map<ModelResourceLocation, BakedModel> delegate() {
|
protected Map<ModelResourceLocation, BakedModel> delegate() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user