aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm/fabric/citresewn/pack
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-03-06 17:42:04 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-03-06 17:42:04 +0200
commit2356c6bb055079ef03cfd26e9d505ab9cea3960d (patch)
tree4649c1ee2779b4997d1d386222e523d82786f45f /src/main/java/shcm/shsupercm/fabric/citresewn/pack
parent526a5f1da2354d328be10c4d6d2f58b3b73e0d20 (diff)
downloadCITResewn-2356c6bb055079ef03cfd26e9d505ab9cea3960d.tar.gz
CITResewn-2356c6bb055079ef03cfd26e9d505ab9cea3960d.tar.bz2
CITResewn-2356c6bb055079ef03cfd26e9d505ab9cea3960d.zip
Modified global properties api a bit
Diffstat (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn/pack')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java14
1 files changed, 7 insertions, 7 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 c16242f..3e93b07 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/GlobalProperties.java
@@ -19,6 +19,7 @@ import java.util.Set;
/**
* Property group representation of the global cit.properties file.
+ * @see CITGlobalProperties
* @see PackParser#loadGlobalProperties(ResourceManager, GlobalProperties)
*/
public class GlobalProperties extends PropertyGroup {
@@ -59,13 +60,12 @@ public class GlobalProperties extends PropertyGroup {
for (PropertyValue value : entry.getValue())
lastValue = value;
- if (lastValue != null)
- try {
- container.getEntrypoint().globalProperty(entry.getKey().path(), lastValue);
- } catch (Exception e) {
- CITResewn.logErrorLoading("Errored while parsing global properties: Line " + lastValue.position() + " of " + lastValue.propertiesIdentifier() + " in " + lastValue.packName());
- e.printStackTrace();
- }
+ try {
+ container.getEntrypoint().globalProperty(entry.getKey().path(), lastValue);
+ } catch (Exception e) {
+ CITResewn.logErrorLoading(lastValue == null ? "Errored while disposing global properties" : "Errored while parsing global properties: Line " + lastValue.position() + " of " + lastValue.propertiesIdentifier() + " in " + lastValue.packName());
+ e.printStackTrace();
+ }
}
}
}