From 75e42832339cc0cfb4584ff45a5d57c335d4618d Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Fri, 18 Feb 2022 08:16:08 +0200 Subject: Fixed sibling condition npe --- src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 siblingConditionType : condition.siblingConditions()) conditions.replaceAll( - siblingCondition -> siblingConditionType == siblingCondition.getClass() ? + siblingCondition -> siblingCondition != null && siblingConditionType == siblingCondition.getClass() ? condition.modifySibling(siblingCondition) : siblingCondition); -- cgit