From f3200b65a7ca4cbd6160b032979056164d23eed3 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Sun, 29 Aug 2021 17:43:24 +0300 Subject: v0.4.0: Added config options to mute loading errors/warns --- src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/pack/CITPack.java') 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()); } } -- cgit