Skip to content

Commit

Permalink
Fix item frames having missing textures in fallback path
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
embeddedt committed Sep 9, 2023
1 parent 26242a5 commit e35a0ed
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public class ModelLocationInformation {

public static final CompletableFuture<Void> initFuture = new CompletableFuture<>();

private static void loadStaticVariants() {
ResourceLocation itemFrame = new ResourceLocation("item_frame");
allKnownModelLocations.add(new ModelResourceLocation(itemFrame, "normal"));
allKnownModelLocations.add(new ModelResourceLocation(itemFrame, "map"));
}

public static void init(ModelLoader loader, BlockStateMapper blockStateMapper) {
Method method = ObfuscationReflectionHelper.findMethod(ModelBakery.class, "func_177592_e", Void.TYPE);
try {
Expand Down Expand Up @@ -81,6 +87,7 @@ public static void init(ModelLoader loader, BlockStateMapper blockStateMapper) {
mrls.add(location);
}
}
loadStaticVariants();
for(Collection<ModelResourceLocation> c : validVariantsForBlock.values()) {
((ObjectOpenHashSet<ModelResourceLocation>)c).trim();
}
Expand Down

0 comments on commit e35a0ed

Please sign in to comment.