Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing Pattern Encoder: Set amount doesn't work if pick block is not the default of middle click #8302

Open
coyo-t opened this issue Dec 24, 2024 · 4 comments
Labels
bug Self explanatory?

Comments

@coyo-t
Copy link
Contributor

coyo-t commented Dec 24, 2024

Describe the bug

If pick block is not set to middle click, you are unable to open the "Set Amount" screen in the processing pattern encoder. Middle click will do nothing, and your custom pick block key will just cause the item to dissapear.

How to reproduce the bug

Set pick block to ` for example (this is what I use), open a pattern encoding terminal for a processing pattern and attempt to set a specific amount of an item with either ` or middle click

Expected behavior

Either middle click opens the "Set Amount" screen (regardless of whether its your pick block key or not), or your pick block key does.

Additional details

This doesn't happen with requesting something to be crafted. using my pick block key of (`) on something that can be crafted has the dialog come up fine.

Both of these should probably be its own unique bind instead of piggybacking off of pick block, or let the user do shift+mousewheel to change the amount as well

Which minecraft version are you using?

1.21

On which mod loaders does it happen?

NeoForge

Crash log

https://pastebin.com/6ptsjDJq

@coyo-t coyo-t added the bug Self explanatory? label Dec 24, 2024
@shartte
Copy link
Member

shartte commented Dec 24, 2024

We are not using the pick block binding for handling middle-mouse-clicks in the UI. So something else is actually forwarding that, maybe?

@Helios23
Copy link

Helios23 commented Jan 4, 2025

@shartte Is there a keybind it should be using? In latest ATM9 I've unbound all middleclick binds but still have same issue, have also unbound all inv tweaks mod binds

@Mithi83
Copy link
Contributor

Mithi83 commented Jan 4, 2025

https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/main/src/main/java/appeng/client/gui/me/items/PatternEncodingTermScreen.java#L99

Seems to be the relevant code here. This if (this.minecraft.options.keyPickItem.matchesMouse(btn)) sounds like it will only ever work if you have a keybind for pick block that is a mouse button.

@coyo-t
Copy link
Contributor Author

coyo-t commented Jan 4, 2025

https://github.com/AppliedEnergistics/Applied-Energistics-2/blob/main/src/main/java/appeng/client/gui/me/items/PatternEncodingTermScreen.java#L99

Seems to be the relevant code here. This if (this.minecraft.options.keyPickItem.matchesMouse(btn)) sounds like it will only ever work if you have a keybind for pick block that is a mouse button.

I just tested this by setting pick block to left mouse and yeah that makes the "set amount" screen come up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Self explanatory?
Projects
None yet
Development

No branches or pull requests

4 participants