diff options
author | SHsuperCM <shsupercm@gmail.com> | 2022-03-05 14:21:15 +0200 |
---|---|---|
committer | SHsuperCM <shsupercm@gmail.com> | 2022-03-05 14:21:15 +0200 |
commit | 09792f49ee89c6b4ff37464acec4b94b3f9f370b (patch) | |
tree | d64c4ca47af90e8e48228d9c9fc9aca2a5485ae8 /src | |
parent | 6f84ebf371a7aa8728375c0633b19e489c67de5e (diff) | |
download | CITResewn-09792f49ee89c6b4ff37464acec4b94b3f9f370b.tar.gz CITResewn-09792f49ee89c6b4ff37464acec4b94b3f9f370b.tar.bz2 CITResewn-09792f49ee89c6b4ff37464acec4b94b3f9f370b.zip |
Fixed log spam from Lambda Better Grass
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java | 2 | ||||
-rw-r--r-- | src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java index 6788b1d..c16242f 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java @@ -28,7 +28,7 @@ public class GlobalProperties extends PropertyGroup { @Override public String getExtension() { - return ""; + return ".properties"; } @Override diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java index eab7e46..adc935a 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java @@ -74,6 +74,9 @@ public final class PackParser { private PackParser() {} globalProperties.load(pack.getName(), identifier, pack.open(ResourceType.CLIENT_RESOURCES, identifier)); } catch (FileNotFoundException ignored) { } catch (IOException e) { + // fixes log spam from Lambda Better Grass + if (pack.getClass().getSimpleName().equals("LBGResourcePack")) continue; + CITResewn.logErrorLoading("Errored while loading global properties: " + identifier + " from " + pack.getName()); e.printStackTrace(); } |