From e35a0edbcf64fe57533ff81f6e14968583a168d8 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Fri, 8 Sep 2023 20:00:25 -0400 Subject: [PATCH] Fix item frames having missing textures in fallback path Fixes #75 --- .../dynamicresources/model/ModelLocationInformation.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/org/embeddedt/vintagefix/dynamicresources/model/ModelLocationInformation.java b/src/main/java/org/embeddedt/vintagefix/dynamicresources/model/ModelLocationInformation.java index 858b44a..928d73b 100644 --- a/src/main/java/org/embeddedt/vintagefix/dynamicresources/model/ModelLocationInformation.java +++ b/src/main/java/org/embeddedt/vintagefix/dynamicresources/model/ModelLocationInformation.java @@ -41,6 +41,12 @@ public class ModelLocationInformation { public static final CompletableFuture 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 { @@ -81,6 +87,7 @@ public static void init(ModelLoader loader, BlockStateMapper blockStateMapper) { mrls.add(location); } } + loadStaticVariants(); for(Collection c : validVariantsForBlock.values()) { ((ObjectOpenHashSet)c).trim(); }