From 2b71fe2d3c712f3146485ed7df98125c6b2baf79 Mon Sep 17 00:00:00 2001 From: ah-OOG-ah <75745146+ah-OOG-ah@users.noreply.github.com> Date: Mon, 25 Aug 2025 11:30:12 -0400 Subject: [PATCH] Finish bakery stub --- .../gtnhlib/client/model/loading/ModelRegistry.java | 3 +++ 1 file changed, 3 insertions(+) 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