aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-03-05 14:21:15 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-03-05 14:21:15 +0200
commit09792f49ee89c6b4ff37464acec4b94b3f9f370b (patch)
treed64c4ca47af90e8e48228d9c9fc9aca2a5485ae8
parent6f84ebf371a7aa8728375c0633b19e489c67de5e (diff)
downloadCITResewn-09792f49ee89c6b4ff37464acec4b94b3f9f370b.tar.gz
CITResewn-09792f49ee89c6b4ff37464acec4b94b3f9f370b.tar.bz2
CITResewn-09792f49ee89c6b4ff37464acec4b94b3f9f370b.zip
Fixed log spam from Lambda Better Grass
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java2
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java3
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();
}