mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-13 17:04:17 +00:00
fix(middle-click): Prevent middle click craft when an item is picked up by the player (#1660)
Co-authored-by: Alex Vermette <[email protected]>
This commit is contained in:
1 parent
151550f6d5
commit
b50ef8d02c
1 file changed
+6
@@ -776,6 +776,12 @@ public class GuiMEMonitorable extends AEBaseGui
|
||||
return true;
|
||||
}
|
||||
case keyBindPickBlockAction -> {
|
||||
if (player.inventory.getItemStack() != null) {
|
||||
// middle click while holding an item; conflict with other feature like MatterManipulator pick
|
||||
// block.
|
||||
return false;
|
||||
}
|
||||
|
||||
if (slot.getAEStack() != null && slot.getAEStack().isCraftable()) {
|
||||
this.sendAction(MonitorableAction.AUTO_CRAFT, slot.getAEStack(), -1);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user