aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2021-08-29 17:43:24 +0300
committerSHsuperCM <shsupercm@gmail.com>2021-08-29 17:43:24 +0300
commitf3200b65a7ca4cbd6160b032979056164d23eed3 (patch)
treef1db65e3dc10b41e99b665cfcd1522e663a3b858 /src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java
parenta96cbd1dc47330d655c05e6467153db104116e58 (diff)
downloadCITResewn-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/CITPack.java')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java6
1 files changed, 3 insertions, 3 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());
}
}