Skip to content

Commit 83a896c

Browse files
committed
Revert last commit to not include color-color removal
kept as a band aid fix until we fix it properly due to it breaking this PR
1 parent e66ad6f commit 83a896c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/main/java/ch/njol/skript/classes/data/DefaultComparators.java

+13
Original file line numberDiff line numberDiff line change
@@ -654,6 +654,19 @@ public boolean supportsOrdering() {
654654
return false;
655655
}
656656
});
657+
658+
// Color - Color
659+
Comparators.registerComparator(Color.class, Color.class, new Comparator<Color, Color>() {
660+
@Override
661+
public Relation compare(Color color1, Color color2) {
662+
return Relation.get(color1.getName().equals(color2.getName()));
663+
}
664+
665+
@Override
666+
public boolean supportsOrdering() {
667+
return false;
668+
}
669+
});
657670
}
658671

659672
}

0 commit comments

Comments
 (0)