NotEnoughItems icon indicating copy to clipboard operation
NotEnoughItems copied to clipboard

[Bug] Ctrl Q No longer drops item. Caused by a shortcut added by NotEnoughItems

Open SnowShock35 opened this issue 9 years ago • 7 comments

Hi ChickenBones, Got a bug report for you, this has been driving me crazy and hopefully its something you can work around/fix here is the details... Forge: 1230 CodeChickenCore Version: 1.7.10-1.0.3.26 NEI Version: 1.7.10-1.0.3.56 Description: Using Ctrl Q without NEI installed in both inventory and player view will drop items on the ground. However when NEI is installed in the inventory GUI it presents a problem (No matter what mode you are in i.e. Cheat Mode Recipe Mode). It will refuse to drop it on the ground because NEI is using it to try and spawn in items however even in recipe mode it still doesn't work it is still trying to do spawn them in but can't due to being in Recipe Mode. I imagine the best fix that I can think of is to add an ifCreative = true use the NEI spawn in shortcut Ctrl Q. (I'm obviously not a coder so I doubt that actually works :p) but I imagine there is a way to do something like that.

Hope this is fixable and it is in the next build. -Snow

SnowShock35 avatar Oct 21 '14 15:10 SnowShock35

To clarify. What should happen is you mouse over an item, hold Ctrl [and press Q]/[hold Q, and click] Then [one item] or [the whole stack] should drop? And what actually happens is NEI tries to spawn an item?

Is this in [creative mode inventory], [C+ inventory] or [survival]?

And if I try in vanilla without NEI it will function as intended?

Chicken-Bones avatar Dec 04 '14 02:12 Chicken-Bones

If I Ctrl Q over any item in my inventory survival mode with recipe mode nothing happens If I repeat this in standard creative mode and cheat mode it will spawn in items 1 at a time same with creative +

SnowShock35 avatar Dec 05 '14 16:12 SnowShock35

Please fix, this is still an issue and i'm almost 100% sure everyone hates this.

ub3rl337z4ur avatar Sep 14 '15 23:09 ub3rl337z4ur

It's bound to the drop key, not a hard-coded Q or any configurable key in NEI.

This is indeed incredibly annoying. In Vanilla, Control+[drop key] over a stack in an inventory is supposed to drop the stack as if you picked it up by hand and dropped it outside of the GUI. But with NEI, the behaviour is changed.

DashFury avatar Oct 08 '15 01:10 DashFury

Reality PLEASE FIX this for 1.7.10

AugustoResende avatar Feb 15 '16 22:02 AugustoResende

@ub3rl337z4ur @GabrielAugustoTI The issue will unlikely be fixed at this point I imagine :confused:

SnowShock35 avatar Feb 25 '16 13:02 SnowShock35

I know this is an extreme necro post, however, I've been playing GT: New Horizons recently and the inability to drop a single stack of items with CTRL+Q has become a serious annoyance.

It's become so incredibly annoying that I scoured the source code of NEI and found the problem: NEIController.java completely overrides the usage of the CTRL key in the handleSlotClick method.

if (NEIClientUtils.controlKey() && slot != null && slot.getStack() != null && slot.isItemValid(slot.getStack())) { NEIClientUtils.cheatItem(slot.getStack(), button, 1); return true; }

There is no check for whether the user is in Cheat/Creative Mode when CTRL is pressed, nor is there any keybind option to disable this functionality.

Although the likelihood of this issue being fixed by Chicken-Bones at this point is close to nil, I hope this will at least explain the reason why this problem even exists in the first place to others like me - someone who has scoured the internet for the past 3 days searching for a semblance of some sort of explanation as to why this problem even occurs.

Toyemaker avatar Aug 22 '21 16:08 Toyemaker