Skip to content

Commit df8321f

Browse files
committed
revert back change in 1 line
1 parent 3cad39e commit df8321f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/nekiplay/meteorplus/mixin/meteorclient/modules/MiddleClickExtraMixin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public MiddleClickExtraMixin() {
4545
@Inject(method = "onMouseClick", at = @At("HEAD"), cancellable = true)
4646
private void onMouseClick(MouseClickEvent event, CallbackInfo ci) {
4747
if (event.action == KeyAction.Press && event.button() == 2 && mc.currentScreen == null) {
48-
if (event.action != KeyAction.Press || event.button() != 2) return;
48+
if (event.action != KeyAction.Press || event.button() != GLFW_MOUSE_BUTTON_MIDDLE) return;
4949
if (noInventory.get() && mc.currentScreen != null) {
5050
ci.cancel();
5151
}

0 commit comments

Comments
 (0)