Skip to content

Commit

Permalink
fix bug introduced in #42 (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexdoru authored Oct 22, 2024
1 parent b2bf7a4 commit 0b9d1ed
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public Point getRelativeMousePosition(int recipe) {
java.awt.Point mouse = GuiDraw.getMousePosition();
java.awt.Point offset = gui.getRecipePosition(recipe);

int x = mouse.x + horizontalScrollbar.getScroll() - gui.guiLeft + offset.x;
int y = mouse.y + verticalScrollbar.getScroll() - gui.guiTop + offset.y;
int x = mouse.x + horizontalScrollbar.getScroll() - (gui.guiLeft + offset.x);
int y = mouse.y + verticalScrollbar.getScroll() - (gui.guiTop + offset.y);
return Point.create(x, y);
}

Expand Down

0 comments on commit 0b9d1ed

Please sign in to comment.