Skip to content

Commit

Permalink
Match method signature of invokers
Browse files Browse the repository at this point in the history
  • Loading branch information
YannickMG committed Jan 26, 2025
1 parent 880b592 commit 57820b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ static RenderItem getItemRender() {
List<GuiLabel> getLabelList();

@Invoker
void invokeKeyTyped(char typedChar, int keyCode) throws IOException;
void invokeKeyTyped(char typedChar, int keyCode);

@Invoker
void invokeMouseClicked(int mouseX, int mouseY, int mouseButton) throws IOException;
void invokeMouseClicked(int mouseX, int mouseY, int mouseButton);

@Invoker("mouseMovedOrUp")
void invokeMouseReleased(int mouseX, int mouseY, int state);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,6 @@ public static void clickSlot(ModularScreen ms, Slot slot) {
// set clicked slot to make sure the container clicks the desired slot
clickableGuiContainer.modularUI$setClickedSlot(slot);
acc.invokeMouseClicked(ctx.getAbsMouseX(), ctx.getMouseY(), ctx.getMouseButton());
} catch (IOException e) {
throw new RuntimeException(e);
} finally {
// undo modifications
clickableGuiContainer.modularUI$setClickedSlot(null);
Expand Down

0 comments on commit 57820b0

Please sign in to comment.