From 6e34cf1a79a05a92b8ea7732c866051f71b8caeb 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:24:12 -0400 Subject: [PATCH] What could possibly go wrong? --- .../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 5d1c50f5..780cdba4 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 @@ -25,6 +25,9 @@ import com.gtnewhorizon.gtnhlib.client.model.state.StateDeserializer; import com.gtnewhorizon.gtnhlib.client.model.state.StateModelMap; import org.jetbrains.annotations.NotNull; +/// Handles model loading and caching. All caches are size-based - this means that if a model has enough parents, it may +/// exhaust the caches and unload itself before being fully baked. There *probably* won't be any consequences for this +/// beyond excessively complex models being loaded multiple times... add a counter if I'm wrong. public class ModelRegistry { private static final Gson GSON = new GsonBuilder()