Skip to content

Commit

Permalink
Made all modules force load if dev environment
Browse files Browse the repository at this point in the history
  • Loading branch information
StellarWind22 committed Dec 1, 2023
1 parent 620a4b4 commit 44854ca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
}
Expand Down

0 comments on commit 44854ca

Please sign in to comment.