Skip to content
Permalink
Browse files

Ordered the list of anvil by tier in JEI, closes #359

  • Loading branch information
DisasterMoo committed Aug 31, 2019
1 parent fa430ac commit 8866b41c3da25a5a2fe59c648d62aae7492742a2
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/main/java/net/dries007/tfc/compat/jei/TFCJEIPlugin.java
@@ -5,6 +5,7 @@

package net.dries007.tfc.compat.jei;

import java.util.Comparator;
import java.util.List;
import java.util.stream.Collectors;

@@ -100,7 +101,11 @@ public void register(IModRegistry registry)
.collect(Collectors.toList());

registry.addRecipes(weldList, WELDING_UID);
for (Metal metal : TFCRegistries.METALS.getValuesCollection())
List<Metal> tierOrdered = TFCRegistries.METALS.getValuesCollection()
.stream()
.sorted(Comparator.comparingInt(metal -> metal.getTier().ordinal()))
.collect(Collectors.toList());
for (Metal metal : tierOrdered)
{
if (Metal.ItemType.ANVIL.hasType(metal))
{

0 comments on commit 8866b41

Please sign in to comment.
You can’t perform that action at this time.