diff --git a/src/main/java/com/gtnewhorizon/gtnhlib/client/model/loading/ModelRegistry.java b/src/main/java/com/gtnewhorizon/gtnhlib/client/model/loading/ModelRegistry.java index 780cdba4..542836c0 100644 --- a/src/main/java/com/gtnewhorizon/gtnhlib/client/model/loading/ModelRegistry.java +++ b/src/main/java/com/gtnewhorizon/gtnhlib/client/model/loading/ModelRegistry.java @@ -71,6 +71,9 @@ public class ModelRegistry { // missing from the cache... that's why we're loading one from scratch. The JSONModel *used* by the UnbakedModel // will be cached, however. final var dough = smm.selectModel(properties); + if (dough == null) return MISSING_MODEL.bake(); + + return dough.bake(); } /// Getter for {@link JSONModel}s. We don't want to publicly expose the cache, modders can't be trusted with it :P