fix: Spells are now sorted alphabetically by their names, instead of first being sorted by modid

This commit is contained in:
WinDanesz
2024-03-15 01:31:51 +01:00
parent e5c00e3882
commit 1322c920f5
@@ -20,8 +20,7 @@ public interface ISpellSortable {
TIER("tier", Comparator.naturalOrder()),
ELEMENT("element", Comparator.comparing(Spell::getElement).thenComparing(Spell::getTier)),
ALPHABETICAL("alphabetical", Comparator.comparing(Spell::getUnlocalisedName));
ALPHABETICAL("alphabetical", Comparator.comparing(s -> s.getRegistryName().getPath().toString()));
public String name;
public Comparator<? super Spell> comparator;