Skip to content

Commit

Permalink
fix slot clicking
Browse files Browse the repository at this point in the history
  • Loading branch information
brachy84 committed Jan 28, 2025
1 parent b1e8013 commit c9d62c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public static void clickSlot(ModularScreen ms, Slot slot) {
acc.setButtonList(Collections.emptyList());
// set clicked slot to make sure the container clicks the desired slot
clickableGuiContainer.modularUI$setClickedSlot(slot);
acc.invokeMouseClicked(ctx.getAbsMouseX(), ctx.getMouseY(), ctx.getMouseButton());
acc.invokeMouseClicked(ctx.getAbsMouseX(), ctx.getAbsMouseY(), ctx.getMouseButton());
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
Expand Down

0 comments on commit c9d62c9

Please sign in to comment.