We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cad39e commit df8321fCopy full SHA for df8321f
src/main/java/nekiplay/meteorplus/mixin/meteorclient/modules/MiddleClickExtraMixin.java
@@ -45,7 +45,7 @@ public MiddleClickExtraMixin() {
45
@Inject(method = "onMouseClick", at = @At("HEAD"), cancellable = true)
46
private void onMouseClick(MouseClickEvent event, CallbackInfo ci) {
47
if (event.action == KeyAction.Press && event.button() == 2 && mc.currentScreen == null) {
48
- if (event.action != KeyAction.Press || event.button() != 2) return;
+ if (event.action != KeyAction.Press || event.button() != GLFW_MOUSE_BUTTON_MIDDLE) return;
49
if (noInventory.get() && mc.currentScreen != null) {
50
ci.cancel();
51
}
0 commit comments