diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-09-18 14:22:43 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-09-18 14:22:43 +0300 |
commit | 158549e794a48d9defb52bee46ca02a4db30bdc8 (patch) | |
tree | 7ed06aaae267fb5990b6626e500a3ab5915b08d4 | |
parent | 9fc59f7f9e0611097ede30a3d8738b73860a9479 (diff) | |
download | CITResewn-158549e794a48d9defb52bee46ca02a4db30bdc8.tar.gz CITResewn-158549e794a48d9defb52bee46ca02a4db30bdc8.tar.bz2 CITResewn-158549e794a48d9defb52bee46ca02a4db30bdc8.zip |
Logs
3 files changed, 14 insertions, 9 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/CITResewn.java b/src/main/java/shcm/shsupercm/fabric/citresewn/CITResewn.java index b7f16aa..9ee05e4 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/CITResewn.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/CITResewn.java @@ -29,18 +29,18 @@ public class CITResewn implements ClientModInitializer { } public static void info(String message) { - LOG.info(message); + LOG.info("[citresewn] " + message); } - public static void logErrorLoading(String message) { - if (CITResewnConfig.INSTANCE().mute_errors) + public static void logWarnLoading(String message) { + if (CITResewnConfig.INSTANCE().mute_warns) return; - LOG.error(message); + LOG.error("[citresewn] " + message); } - public static void logWarnLoading(String message) { - if (CITResewnConfig.INSTANCE().mute_warns) + public static void logErrorLoading(String message) { + if (CITResewnConfig.INSTANCE().mute_errors) return; - LOG.error(message); + LOG.error("{citresewn} " + message); } } diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java index e4687ef..446e2bf 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/mixin/cititem/ModelLoaderMixin.java @@ -51,7 +51,7 @@ public class ModelLoaderMixin { if (CITResewn.INSTANCE.activeCITs == null) return; - info("Loading CITItem models.."); + info("Loading CITItem models..."); CITResewn.INSTANCE.activeCITs.citItems.values().stream() .flatMap(Collection::stream) .distinct() diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITParser.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITParser.java index 5a2d427..7313301 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITParser.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITParser.java @@ -102,7 +102,12 @@ public final class CITParser { private CITParser() {} }) .collect(Collectors.toCollection(() -> citPack.cits)); - return citPack.cits.isEmpty() ? Collections.emptySet() : Collections.singleton(citPack); + if (citPack.cits.isEmpty()) + return Collections.emptySet(); + else { + CITResewn.info("Found " + citPack.cits.size() + " CIT" + (citPack.cits.size() == 1 ? "" : "s") + " in " + resourcePack.getName()); + return Collections.singleton(citPack); + } } public static Collection<CITPack> parseFabricGroup(ResourcePack resourcePack) { |