From 44854cabb5c1c734e5f6f6910536989d0e9e28b8 Mon Sep 17 00:00:00 2001 From: StellarWind22 Date: Fri, 1 Dec 2023 00:08:50 -0600 Subject: [PATCH] Made all modules force load if dev environment --- .../github/crimsondawn45/basicshields/util/ContentModule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/crimsondawn45/basicshields/util/ContentModule.java b/src/main/java/com/github/crimsondawn45/basicshields/util/ContentModule.java index 7018aed..ab64907 100644 --- a/src/main/java/com/github/crimsondawn45/basicshields/util/ContentModule.java +++ b/src/main/java/com/github/crimsondawn45/basicshields/util/ContentModule.java @@ -31,7 +31,7 @@ public ContentModule(boolean forceLoad, String...ids) { } //If always load is true force module to load if it isn't - if(forceLoad && !this.isLoaded) { + if(forceLoad && !this.isLoaded || FabricLoader.getInstance().isDevelopmentEnvironment()) { this.isLoaded = true; this.forceLoaded = true; } @@ -58,7 +58,7 @@ public ContentModule(boolean forceLoad, boolean isVanillaMaterial, String...ids) if(forceLoad && !this.isLoaded) { this.isLoaded = true; - if(!isVanillaMaterial) { + if(!isVanillaMaterial || FabricLoader.getInstance().isDevelopmentEnvironment()) { this.forceLoaded = true; } }