Fix previous change making modifiers not sorted
@@ -19,6 +19,7 @@ import slimeknights.tconstruct.library.tools.nbt.IToolStackView;
import javax.annotation.Nullable;
import java.util.Collection;
+import java.util.Comparator;
import java.util.List;
import java.util.stream.Stream;
@@ -193,7 +194,7 @@ public class ModifierRecipeLookup {
/** Gets a list of modifier entries for display in JEI, basically the same as creating your own, but the result is cached */
public static List<ModifierEntry> getRecipeModifierList() {
if (RECIPE_MODIFIER_LIST == null) {
- RECIPE_MODIFIER_LIST = RECIPE_MODIFIERS.values().stream().distinct().map(mod -> new ModifierEntry(mod, 1)).toList();
+ RECIPE_MODIFIER_LIST = RECIPE_MODIFIERS.values().stream().distinct().sorted(Comparator.comparing(LazyModifier::getId)).map(mod -> new ModifierEntry(mod, 1)).toList();
}
return RECIPE_MODIFIER_LIST;
}
