diff options
author | nea <romangraef@gmail.com> | 2022-10-30 00:52:12 +0200 |
---|---|---|
committer | nea <romangraef@gmail.com> | 2022-10-30 00:52:12 +0200 |
commit | fd82c58f92ff29fb9a414a009ff84bd0aab3e92d (patch) | |
tree | 25f83a67a65d93865708a74d54412e52fbf55915 /src | |
parent | f0bbd5a9f2efcea16131f9b3688302d61b5757c2 (diff) | |
download | NotEnoughUpdates-fd82c58f92ff29fb9a414a009ff84bd0aab3e92d.tar.gz NotEnoughUpdates-fd82c58f92ff29fb9a414a009ff84bd0aab3e92d.tar.bz2 NotEnoughUpdates-fd82c58f92ff29fb9a414a009ff84bd0aab3e92d.zip |
Sort recipe tabs in GuiItemReciperecipeprio
Recipe tabs in GuiItemRecipe are now sorted according to declaration in
the RecipeType enum
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java index 0a1e5b81..bd8ffbfc 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/GuiItemRecipe.java @@ -43,6 +43,7 @@ import org.lwjgl.input.Mouse; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; +import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; @@ -85,6 +86,7 @@ public class GuiItemRecipe extends GuiScreen { if (!tabs.contains(recipe.getType())) tabs.add(recipe.getType()); } + tabs.sort(Comparator.naturalOrder()); changeRecipe(0, 0); } |