Skip to content

Commit

Permalink
RegistryClassInfo - fix comparator (Failing Tests) (#7319)
Browse files Browse the repository at this point in the history
RegistryClassInfo - fix comparator
  • Loading branch information
ShaneBeee authored Dec 28, 2024
1 parent 0b6cfc0 commit dde9aee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public RegistryClassInfo(Class<R> registryClass, Registry<R> registry, String co
.parser(registryParser);

if (registerComparator)
Comparators.registerComparator(registryClass, registryClass, (o1, o2) -> Relation.get(o1.getKey() == o2.getKey()));
Comparators.registerComparator(registryClass, registryClass, (o1, o2) -> Relation.get(o1.getKey().equals(o2.getKey())));
}

}

0 comments on commit dde9aee

Please sign in to comment.