From ab8d5f275f68a1f793814225df1438e44542a4e0 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 17 Sep 2026 06:16:46 +0000 Subject: [PATCH] fix(NEIController): Skip MMB on slot click to avoid unecessary conflict with itemstack using it (#1038) Co-authored-by: Alex Vermette --- src/main/java/codechicken/nei/NEIController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/codechicken/nei/NEIController.java b/src/main/java/codechicken/nei/NEIController.java index 3fc0ed69..9676435a 100644 --- a/src/main/java/codechicken/nei/NEIController.java +++ b/src/main/java/codechicken/nei/NEIController.java @@ -169,7 +169,7 @@ public class NEIController implements IContainerSlotClickHandler, IContainerInpu if (GuiInfo.hasCustomSlots(gui)) return false; - if (NEIClientUtils.shiftKey()) { + if (NEIClientUtils.shiftKey() && button != 2) { // MMB is used by other mods when an itemstack is picked. // fix small mouse movement while clicking causing slotIndex to be -999 if (slotIndex == -999) { final Point mouse = GuiDraw.getMousePosition();