From 4615af9f467be065426d217375c3b3bd4203afe7 Mon Sep 17 00:00:00 2001 From: SHsuperCM Date: Thu, 17 Feb 2022 12:54:13 +0200 Subject: Removed redundant arg from CITCondition#modifySibling --- src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITCondition.java | 2 +- src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/shcm/shsupercm/fabric/citresewn') diff --git a/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITCondition.java b/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITCondition.java index 03f118f..b5c1996 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITCondition.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITCondition.java @@ -15,7 +15,7 @@ public abstract class CITCondition { return Collections.emptySet(); } - public T modifySibling(Class siblingType, T sibling) { + public T modifySibling(T sibling) { return sibling; } 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 5f5a5c9..303217c 100644 --- a/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java +++ b/src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java @@ -99,7 +99,7 @@ public class PackParser { for (Class siblingConditionType : condition.siblingConditions()) conditions.replaceAll( siblingCondition -> siblingConditionType == siblingCondition.getClass() ? - condition.modifySibling(siblingConditionType, siblingCondition) : + condition.modifySibling(siblingCondition) : siblingCondition); WeightCondition weight = new WeightCondition(); -- cgit