Create Bookmarks Groups; Search Recipe

This commit is contained in:
slprime committed 2024-01-10 23:29:03 +02:00
1 parent e30f6a41ad
commit 4cfbe6b3ad
35 files changed
+2879 -809

No files matched your search

@@ -43,7 +43,7 @@ public class GuiRecipeTabs {
categoriesPerPage = 0;
numHandlers = guiRecipe.currenthandlers.size();
for (IRecipeHandler handler : guiRecipe.currenthandlers) {
for (int i = 0; i < numHandlers; i++) {
if (totalWidth + tabWidth < (guiRecipe.xSize - 4)) {
totalWidth += tabWidth;
categoriesPerPage++;
@@ -79,9 +79,11 @@ public class GuiRecipeTabs {
IRecipeHandler handler = guiRecipe.currenthandlers.get(index);
int tabX = area.x + (i * tabWidth);
if (NEIClientConfig.useCreativeTabStyle())
if (NEIClientConfig.useCreativeTabStyle()) {
tabs.add(new GuiRecipeTabCreative(guiRecipe, handler, tabX, area.y));
else tabs.add(new GuiRecipeTabJEI(guiRecipe, handler, tabX, area.y));
} else {
tabs.add(new GuiRecipeTabJEI(guiRecipe, handler, tabX, area.y));
}
}
// Maybe add buttons