Skip to content

Commit 1b60755

Browse files
committed
Fix wrong location type being passed to model registry
1 parent 2697a8f commit 1b60755

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ public Map<ModelResourceLocation, BakedModel> wrapRegistry(String modId) {
124124
if(modIdsToInclude.stream().noneMatch(INCOMPATIBLE_MODS::contains))
125125
return createWarningRegistry(modId);
126126
Set<ModelResourceLocation> ourModelLocations = Sets.filter(this.topLevelModelLocations, loc -> modIdsToInclude.contains(loc.id().getNamespace()));
127-
BakedModel missingModel = modelRegistry.get(ModelBakery.MISSING_MODEL_LOCATION);
127+
BakedModel missingModel = modelRegistry.get(ModelBakery.MISSING_MODEL_VARIANT);
128128
return new ForwardingMap<ModelResourceLocation, BakedModel>() {
129129
@Override
130130
protected Map<ModelResourceLocation, BakedModel> delegate() {

0 commit comments

Comments
 (0)