Skip to content

Commit 91b5c50

Browse files
committed
Fixed hitbox being too big
1 parent a2d5476 commit 91b5c50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

common/src/main/java/io/github/notenoughupdates/moulconfig/gui/editors/GuiOptionEditorKeybind.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public boolean mouseEvent(@NotNull MouseEvent mouseEvent, @NotNull GuiImmediateC
7272
if (click.getMouseState() && click.getMouseButton() != -1 && editingKeycode) {
7373
editingKeycode = false;
7474
int mouseButton = click.getMouseButton();
75-
System.out.println(mouseButton);
7675
option.set(mouseButton);
7776
return true;
7877
}
@@ -82,7 +81,7 @@ public boolean mouseEvent(@NotNull MouseEvent mouseEvent, @NotNull GuiImmediateC
8281
int width = getHeight();
8382
int mouseX = context.getMouseX();
8483
int mouseY = context.getMouseY();
85-
if (mouseX > width / 6 - 24 && mouseX < width / 6 + 24 &&
84+
if (mouseX > width / 6 - 24 && mouseX < width / 6 + 16 &&
8685
mouseY > height - 7 - 14 && mouseY < height - 7 + 2) {
8786
editingKeycode = true;
8887
return true;

0 commit comments

Comments
 (0)