Skip to content

Commit

Permalink
Fixed hitbox being too big
Browse files Browse the repository at this point in the history
  • Loading branch information
NopoTheGamer committed Oct 21, 2024
1 parent a2d5476 commit 91b5c50
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ public boolean mouseEvent(@NotNull MouseEvent mouseEvent, @NotNull GuiImmediateC
if (click.getMouseState() && click.getMouseButton() != -1 && editingKeycode) {
editingKeycode = false;
int mouseButton = click.getMouseButton();
System.out.println(mouseButton);
option.set(mouseButton);
return true;
}
Expand All @@ -82,7 +81,7 @@ public boolean mouseEvent(@NotNull MouseEvent mouseEvent, @NotNull GuiImmediateC
int width = getHeight();
int mouseX = context.getMouseX();
int mouseY = context.getMouseY();
if (mouseX > width / 6 - 24 && mouseX < width / 6 + 24 &&
if (mouseX > width / 6 - 24 && mouseX < width / 6 + 16 &&
mouseY > height - 7 - 14 && mouseY < height - 7 + 2) {
editingKeycode = true;
return true;
Expand Down

0 comments on commit 91b5c50

Please sign in to comment.