diff options
Diffstat (limited to 'src/main')
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) { |