Compare commits

..
Author SHA1 Message Date
boubou19andOrderedSet86 8731ae82f2 Less hacky fix for light opacity 0 blocks (#1124) (#1148)
Co-authored-by: OrderedSet86 <[email protected]>
2026-11-20 21:38:44 +01:00
boubou19andgorbit99 558449ca99 Change layout recalculation order (#1125) (#1147)
Co-authored-by: gorbit99 <[email protected]>
2026-11-20 21:34:18 +01:00
boubou19andslprime 7fc80371c7 Copy fluid registry name instead of the display item id (#1122) (#1145)
Co-authored-by: slprime <[email protected]>
2026-11-19 08:17:47 +01:00
f5f696abba Add NEI mob spawn overlay variants (#1111) (#1144)
Co-authored-by: OrderedSet86 <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Martin Robertz <[email protected]>
2026-11-19 08:15:31 +01:00
boubou19andslprime 277c32b9e6 Don't toggle handler info widget while typing in recipe search (#1121) (#1143)
Co-authored-by: slprime <[email protected]>
2026-11-19 08:13:15 +01:00
boubou19andslprime fbb0cdc81a Add recipe text search with ~ prefix (#1120) (#1142)
Co-authored-by: slprime <[email protected]>
2026-11-19 08:11:11 +01:00
boubou19andslprime 991e166e0a Speed up GUID cache and bookmark recipe lookups (#1119) (#1141)
Co-authored-by: slprime <[email protected]>
2026-11-19 08:08:48 +01:00
d298c0e827 Don't copy stack unless it changed (#1116) (#1140)
Co-authored-by: DarkShadow44 <[email protected]>
Co-authored-by: slprime <[email protected]>
2026-11-19 08:06:32 +01:00
boubou19andslprime da16b40f36 Optimize GUI overlap scan for item panels (#1118) (#1139)
Co-authored-by: slprime <[email protected]>
2026-11-19 08:02:56 +01:00
boubou19andslprime 651b59cba9 Fix WorldClient leak after leaving the world (#1115) (#1138)
Co-authored-by: slprime <[email protected]>
2026-11-19 08:00:50 +01:00
boubou19andslprime f922d7ef1e Make name optional in API.addCollapsibleGroup (#1114) (#1137)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:57:05 +01:00
boubou19andslprime 52ad6f38a5 Add API.addCollapsibleGroup for registering collapsible item groups (#1113) (#1136)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:52:58 +01:00
boubou19andslprime 8d118cb132 Rollback fluent setters in PositionedStack added in #1106 (#1110) (#1135)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:50:30 +01:00
boubou19andslprime 2590eec44a Fix NPE in StackInfo.getItemStackWithMinimumDamage for unregistered items (#1109) (#1134)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:48:46 +01:00
boubou19andslprime 81a92a28f5 Remove creative tab style option for recipe tabs (#1107) (#1133)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:46:47 +01:00
boubou19andslprime 621ab621c7 Move RecipeTransferRectHandler out of TemplateRecipeHandler and tidy up PositionedStack (#1106) (#1132)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:44:56 +01:00
boubou19andslprime 1aa4d56100 Add getResultStacks/getAuxiliaryStacks to IRecipeHandler (#1105) (#1131)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:42:56 +01:00
boubou19andslprime dc35985ea0 Stop auto-creating NEI config files, add export buttons instead (#1104) (#1130)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:40:46 +01:00
boubou19andslprime bb8632a012 Fix ConcurrentModificationException when iterating the crafting recipe list (#1103) (#1129)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:38:03 +01:00
b361604422 Remove per-world config override (#1094) (#1128)
Co-authored-by: slprime <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
2026-11-19 07:35:55 +01:00
boubou19andslprime 02c97a05c3 Remove hardcoded vanilla block name overrides (#1102) (#1127)
Co-authored-by: slprime <[email protected]>
2026-11-19 07:33:11 +01:00
boubou19andArmisael5 d0785b5261 Add NEI Recipe Exporting (#1100) (#1126)
Co-authored-by: Armisael5 <[email protected]>
2026-11-19 07:31:13 +01:00
UltraProdigy 52ae4b2bd4 ci: run build and test on release branches 2026-11-09 01:11:41 -05:00
slprime acacd13bd9 Fix autocraft crash when started from the recipe screen (#1108) 2026-11-06 00:31:19 +02:00
4 changed files with 7 additions and 28 deletions

No files matched your search

@@ -1073,7 +1073,6 @@ public class BookmarkPanel extends PanelWidget<BookmarkGrid> {
}
this.grid.shiftGroupAmount(groupId, multiplier * shift);
clearTooltips();
return true;
}
}
@@ -1227,8 +1226,6 @@ public class BookmarkPanel extends PanelWidget<BookmarkGrid> {
if (helmStackIndex != -1) {
FastTransferManager.clickSlot(guiContainer, helmStackIndex, 0, 0);
}
clearTooltips();
}
}
@@ -111,7 +111,6 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
private Rectangle pageArea = new Rectangle();
private int lastPage = -1;
private int catalystsVersion = -1;
private final GuiRecipeTabs recipeTabs;
private final GuiRecipeCatalyst recipeCatalyst;
private SearchRecipeHandler<H> handler;
@@ -550,11 +549,7 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
}
}
if (this.catalystsVersion != RecipeCatalysts.getVersion()) {
this.catalystsVersion = RecipeCatalysts.getVersion();
this.recipeCatalyst.setCatalysts(RecipeCatalysts.getRecipeCatalysts(this.handler.original));
}
this.recipeCatalyst.setCatalysts(RecipeCatalysts.getRecipeCatalysts(this.handler.original));
this.container.update();
}
@@ -585,8 +580,6 @@ public abstract class GuiRecipe<H extends IRecipeHandler> extends GuiContainer i
this.recipetype = (this.currenthandlers.size() + idx) % this.currenthandlers.size();
this.handler = new SearchRecipeHandler<>(this.currenthandlers.get(this.recipetype));
this.handlerInfo = GuiRecipeTab.getHandlerInfo(this.handler.original);
this.catalystsVersion = RecipeCatalysts.getVersion();
this.recipeCatalyst.setCatalysts(RecipeCatalysts.getRecipeCatalysts(this.handler.original));
updateContainerSize();
this.handlerPages = new RecipePageManager(this.handler, this.handlerInfo, this.container);
this.prevpage.enabled = this.nextpage.enabled = this.handlerPages.getNumPages() > 1;
@@ -1,7 +1,6 @@
package codechicken.nei.recipe;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import org.lwjgl.opengl.GL11;
@@ -72,22 +71,21 @@ public class GuiRecipeCatalyst extends ScrollContainer {
.setOverflowType(ScrollBar.OverflowType.AUTO).setTrackPadding(0, BORDER_PADDING, -13, BORDER_PADDING)
.setScrollPlace(ScrollBar.ScrollPlace.START);
private List<PositionedStack> items = Collections.emptyList();
private PositionedStack[] items = new PositionedStack[0];
private boolean showWidget = false;
private int availableHeight = 0;
private int style = -1;
public GuiRecipeCatalyst() {
setPaddingBlock(BORDER_PADDING + 1, BORDER_PADDING + 1);
}
public void setCatalysts(List<PositionedStack> items) {
this.items = items;
this.items = items.toArray(new PositionedStack[0]);
createWidgets();
}
public void setAvailableHeight(int height) {
if (this.availableHeight != height || this.style != NEIClientConfig.getJEIStyleRecipeCatalysts()) {
if (this.availableHeight != height) {
this.availableHeight = height;
createWidgets();
}
@@ -104,14 +102,14 @@ public class GuiRecipeCatalyst extends ScrollContainer {
public int getColumnCount() {
if (NEIClientConfig.getJEIStyleRecipeCatalysts() == 1) {
final int maxItemsPerColumn = Math.max(0, this.availableHeight - 2 - BORDER_PADDING * 2) / SLOT_SIZE;
return maxItemsPerColumn > 0 ? NEIServerUtils.divideCeil(this.items.size(), maxItemsPerColumn) : 0;
return maxItemsPerColumn > 0 ? NEIServerUtils.divideCeil(this.items.length, maxItemsPerColumn) : 0;
}
return 1;
}
public int getRowCount() {
final int columnCount = getColumnCount();
return columnCount > 0 ? NEIServerUtils.divideCeil(this.items.size(), columnCount) : 0;
return columnCount > 0 ? NEIServerUtils.divideCeil(this.items.length, columnCount) : 0;
}
protected void createWidgets() {
@@ -121,11 +119,10 @@ public class GuiRecipeCatalyst extends ScrollContainer {
setVerticalScroll(null);
setPaddingInline(BORDER_PADDING + 1, BORDER_PADDING - 3);
this.style = NEIClientConfig.getJEIStyleRecipeCatalysts();
this.h = rows * SLOT_SIZE + this.paddingBlockStart + this.paddingBlockEnd;
this.w = columns * SLOT_SIZE + this.paddingInlineStart + this.paddingInlineEnd;
if (this.style == 2
if (NEIClientConfig.getJEIStyleRecipeCatalysts() == 2
&& rows * SLOT_SIZE + this.paddingBlockStart + this.paddingBlockEnd > this.availableHeight) {
this.h = Math.min(this.h, this.availableHeight);
this.w += VERTICAL_SCROLLBAR.getTrackWidth();
@@ -137,7 +134,6 @@ public class GuiRecipeCatalyst extends ScrollContainer {
this.showWidget = rows * columns > 0;
if (rows == 0 || columns == 0) {
clear();
return;
}
@@ -36,11 +36,6 @@ public class RecipeCatalysts {
public static final Map<String, List<ItemStack>> catalystsRemoverFromIMC = new HashMap<>();
private static final Map<String, List<PositionedStack>> recipeCatalystMap = new HashMap<>();
private static final List<String> forceClassNameList = new ArrayList<>();
private static int version = 0;
public static int getVersion() {
return version;
}
public static void addRecipeCatalyst(String handlerID, CatalystInfo catalystInfo) {
if (handlerID == null || handlerID.isEmpty() || catalystInfo.getStack() == null) return;
@@ -74,7 +69,6 @@ public class RecipeCatalysts {
if (handlerID == null || handlerID.isEmpty()) return;
catalystsAdderFromAPI.put(handlerID, catalystInfoList);
recipeCatalystMap.put(handlerID, convertToPositionedStackList(catalystInfoList));
version++;
}
public static List<PositionedStack> getRecipeCatalysts(IRecipeHandler handler) {
@@ -182,7 +176,6 @@ public class RecipeCatalysts {
recipeCatalystMap.put(entry.getKey(), convertToPositionedStackList(entry.getValue()));
}
version++;
}
private static void resolveAdderQueue(Map<String, CatalystInfoList> recipeCatalystMap) {