aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2021-10-15 16:47:40 +0300
committerSHsuperCM <shsupercm@gmail.com>2021-10-15 16:47:40 +0300
commitccd310d0f6432126b98558aeb1ae59bc25482d76 (patch)
tree42c78541a4d4755b3964f9be0d98af71c52b5ff0 /src/main
parentbdfb65646744ed050205f86e3df19a239a3ba610 (diff)
downloadCITResewn-ccd310d0f6432126b98558aeb1ae59bc25482d76.tar.gz
CITResewn-ccd310d0f6432126b98558aeb1ae59bc25482d76.tar.bz2
CITResewn-ccd310d0f6432126b98558aeb1ae59bc25482d76.zip
Added log warning to broken paths
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java
index f1a2b01..1a3faa8 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java
@@ -23,7 +23,9 @@ public class ReloadableResourceManagerImplMixin {
@Inject(method = "reload", at = @At("RETURN"))
public void onReload(Executor prepareExecutor, Executor applyExecutor, CompletableFuture<Unit> initialStage, List<ResourcePack> packs, CallbackInfoReturnable<ResourceReload> cir) {
- if (CITResewn.INSTANCE.processingBrokenPaths = this.type == ResourceType.CLIENT_RESOURCES)
+ if (CITResewn.INSTANCE.processingBrokenPaths = this.type == ResourceType.CLIENT_RESOURCES) {
+ CITResewn.logWarnLoading("Caution! Broken paths is enabled!");
cir.getReturnValue().whenComplete().thenRun(() -> CITResewn.INSTANCE.processingBrokenPaths = false);
+ }
}
}