aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/shcm/shsupercm
diff options
context:
space:
mode:
authorSHsuperCM <shsupercm@gmail.com>2022-02-17 12:54:13 +0200
committerSHsuperCM <shsupercm@gmail.com>2022-02-17 12:54:13 +0200
commit4615af9f467be065426d217375c3b3bd4203afe7 (patch)
tree8707112f46c096f4577a064eed77657496beff2b /src/main/java/shcm/shsupercm
parent8e96b0fbba042e63f956b017cc3215d9880d597c (diff)
downloadCITResewn-4615af9f467be065426d217375c3b3bd4203afe7.tar.gz
CITResewn-4615af9f467be065426d217375c3b3bd4203afe7.tar.bz2
CITResewn-4615af9f467be065426d217375c3b3bd4203afe7.zip
Removed redundant arg from CITCondition#modifySibling
Diffstat (limited to 'src/main/java/shcm/shsupercm')
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/cit/CITCondition.java2
-rw-r--r--src/main/java/shcm/shsupercm/fabric/citresewn/pack/PackParser.java2
2 files changed, 2 insertions, 2 deletions
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 extends CITCondition> T modifySibling(Class<? extends CITCondition> siblingType, T sibling) {
+ public <T extends CITCondition> 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<? extends CITCondition> siblingConditionType : condition.siblingConditions())
conditions.replaceAll(
siblingCondition -> siblingConditionType == siblingCondition.getClass() ?
- condition.modifySibling(siblingConditionType, siblingCondition) :
+ condition.modifySibling(siblingCondition) :
siblingCondition);
WeightCondition weight = new WeightCondition();