Skip to content

Commit

Permalink
handle getSlotAt mouse offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Pilzinsel64 committed Jan 8, 2025
1 parent b6b4c07 commit 92563ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/zerofall/ezstorage/gui/GuiStorageCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ protected void mouseClicked(int mouseX, int mouseY, int mouseButton) {
}

private Integer getSlotAt(int x, int y) {
int startX = this.guiLeft + 8;
int startY = this.guiTop + 18;
int startX = this.guiLeft + 8 - 1;
int startY = this.guiTop + 18 - 1;

int clickedX = x - startX;
int clickedY = y - startY;
Expand Down

0 comments on commit 92563ba

Please sign in to comment.