Added keyboard shortcuts to NEI

This commit is contained in:
slprime committed 2022-08-13 21:52:43 +03:00
1 parent 529f4374d6
commit 4054ea04f3
30 files changed
+706 -281

No files matched your search

@@ -15,7 +15,7 @@ public class CheatItemHandler extends INEIGuiAdapter {
public boolean handleDragNDrop(GuiContainer gui, int mouseX, int mouseY, ItemStack draggedStack, int button) {
final Slot overSlot = gui.getSlotAtPosition(mouseX, mouseY);
if (overSlot != null && overSlot.isItemValid(draggedStack)) {
if (overSlot != null && overSlot.isItemValid(draggedStack) && NEIClientUtils.getHeldItem() == null) {
if (NEIClientConfig.canCheatItem(draggedStack)) {
int contents = overSlot.getHasStack() ? overSlot.getStack().stackSize : 0;