Skip to content

Commit

Permalink
MouseButtonPressed should not be cancellable
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Apr 9, 2024
1 parent 2578330 commit 6afd13b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface Pre extends Render { }
interface Post extends Render { }
}

interface MouseButtonPressed extends ZScreen, Cancellable {
interface MouseButtonPressed extends ZScreen {
int getButton();
double getMouseX();
double getMouseY();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,16 +116,6 @@ public double getMouseY() {
return e.getMouseY();
}

@Override
public boolean isCanceled() {
return e.isCanceled();
}

@Override
public void setCanceled(boolean cancel) {
e.setCanceled(cancel);
}

public static class Pre extends ForgeZScreen.MouseButtonPressed implements ZScreen.MouseButtonPressed.Pre {
public Pre(ScreenEvent.MouseButtonPressed.Pre e) {
super(e);
Expand Down

0 comments on commit 6afd13b

Please sign in to comment.