diff options
author | SHsuperCM <shsupercm@gmail.com> | 2021-08-29 17:43:24 +0300 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2021-08-29 17:43:24 +0300 |
commit | f3200b65a7ca4cbd6160b032979056164d23eed3 (patch) | |
tree | f1db65e3dc10b41e99b665cfcd1522e663a3b858 /src/main/java/shcm/shsupercm/fabric/citresewn/pack | |
parent | a96cbd1dc47330d655c05e6467153db104116e58 (diff) | |
download | CITResewn-f3200b65a7ca4cbd6160b032979056164d23eed3.tar.gz CITResewn-f3200b65a7ca4cbd6160b032979056164d23eed3.tar.bz2 CITResewn-f3200b65a7ca4cbd6160b032979056164d23eed3.zip |
v0.4.0: Added config options to mute loading errors/warns
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/pack')
3 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java index 0431e62..78dc0e3 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java @@ -28,17 +28,17 @@ public class CITPack { try { cap = Integer.parseInt(properties.getProperty("cap", "8")); } catch (NumberFormatException e) { - CITResewn.LOG.error(new CITParseException(resourcePack, new Identifier("cit.properties"), "cap is not a whole number").getMessage()); + CITResewn.logErrorLoading(new CITParseException(resourcePack, new Identifier("cit.properties"), "cap is not a whole number").getMessage()); } try { fade = Float.parseFloat(properties.getProperty("fade", "0.5")); } catch (NumberFormatException e) { - CITResewn.LOG.error(new CITParseException(resourcePack, new Identifier("cit.properties"), "fade is not a number").getMessage()); + CITResewn.logErrorLoading(new CITParseException(resourcePack, new Identifier("cit.properties"), "fade is not a number").getMessage()); } switch (properties.getProperty("useGlint", "true")) { case "true" -> useGlint = true; case "false" -> useGlint = false; - default -> CITResewn.LOG.error(new CITParseException(resourcePack, new Identifier("cit.properties"), "useGlint is not a boolean").getMessage()); + default -> CITResewn.logErrorLoading(new CITParseException(resourcePack, new Identifier("cit.properties"), "useGlint is not a boolean").getMessage()); } } 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 cf7fe19..5204c9c 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITParser.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITParser.java @@ -60,7 +60,7 @@ public class CITParser { private CITParser() {} citPack.cits.add(parseCIT(citPack, citIdentifier, citProperties)); } catch (Exception e) { - CITResewn.LOG.error(e.getMessage()); + CITResewn.logErrorLoading(e.getMessage()); } } cits.addAll(citPack.cits); diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java index bcd719c..a2ef7ea 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/cits/CITItem.java @@ -189,7 +189,7 @@ public class CITItem extends CIT { }; if (replacement != null) { - CITResewn.LOG.error("CIT Warning: Using deprecated sub item id \"" + subItem + "\" instead of \"" + replacement + "\" in " + pack.resourcePack.getName() + " -> " + propertiesIdentifier.getPath()); + CITResewn.logWarnLoading("CIT Warning: Using deprecated sub item id \"" + subItem + "\" instead of \"" + replacement + "\" in " + pack.resourcePack.getName() + " -> " + propertiesIdentifier.getPath()); return new Identifier("minecraft", "item/" + replacement); } |