aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-02-18 08:16:08 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-02-18 08:16:08 +0200
commit75e42832339cc0cfb4584ff45a5d57c335d4618d (patch)
tree5bbe86ada3d0cf6f0b83132fef4e5cf25bd871af
parent540fc9187ca1d1b1b986d27add982d2026735a3a (diff)
downloadCITResewn-75e42832339cc0cfb4584ff45a5d57c335d4618d.tar.gz
CITResewn-75e42832339cc0cfb4584ff45a5d57c335d4618d.tar.bz2
CITResewn-75e42832339cc0cfb4584ff45a5d57c335d4618d.zip
Fixed sibling condition npe
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java2
1 files changed, 1 insertions, 1 deletions
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 303217c..4c5b116 100644
--- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java
+++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java
@@ -98,7 +98,7 @@ public class PackParser {
if (condition != null)
for (Class<? extends CITCondition> siblingConditionType : condition.siblingConditions())
conditions.replaceAll(
- siblingCondition -> siblingConditionType == siblingCondition.getClass() ?
+ siblingCondition -> siblingCondition != null && siblingConditionType == siblingCondition.getClass() ?
condition.modifySibling(siblingCondition) :
siblingCondition);