diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-10-15 16:47:40 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-10-15 16:47:40 +0300 |
commit | ccd310d0f6432126b98558aeb1ae59bc25482d76 (patch) | |
tree | 42c78541a4d4755b3964f9be0d98af71c52b5ff0 /src/main/java/shcm/shsupercm/fabric/citresewn | |
parent | bdfb65646744ed050205f86e3df19a239a3ba610 (diff) | |
download | CITResewn-ccd310d0f6432126b98558aeb1ae59bc25482d76.tar.gz CITResewn-ccd310d0f6432126b98558aeb1ae59bc25482d76.tar.bz2 CITResewn-ccd310d0f6432126b98558aeb1ae59bc25482d76.zip |
Added log warning to broken paths
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/mixin/broken_paths/ReloadableResourceManagerImplMixin.java | 4 |
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); + } } } |