Ignore "drop key" presses in slot click handler.

This commit is contained in:
Mikhail Golikov authored and miozune committed 2022-02-01 02:55:14 +09:00
1 parent ee3d685a14
commit 837411aa41
1 file changed
+1
@@ -137,6 +137,7 @@ public class NEIController implements IContainerSlotClickHandler, IContainerInpu
}
if (NEIClientUtils.controlKey()
&& modifier != 4//Drop key pressed: net.minecraft.client.gui.inventory.GuiContainer.keyTyped
&& slot != null && slot.getStack() != null
&& slot.isItemValid(slot.getStack())) {
NEIClientUtils.cheatItem(slot.getStack(), button, 1);