Skip to content

Commit

Permalink
Switch文の位置が変だったので修正
Browse files Browse the repository at this point in the history
  • Loading branch information
Arisa9006 committed Nov 16, 2024
1 parent 0f6b625 commit 79ec5fe
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/main/java/dev/felnull/bettergui/listener/GUIClickListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,27 +58,27 @@ public void onClick(InventoryClickEvent e){
item.onCreativeClick(e);
break;
}
switch (e.getClick()){
case WINDOW_BORDER_RIGHT:
page.onWindowBorderRightClick(e);
break;
case WINDOW_BORDER_LEFT:
page.onWindowBorderLeftClick(e);
break;
case RIGHT:
if(e.getSlot() == -999){
page.onOutsideWindowClick(e);
page.onOutsideWindowRightClick(e);
}
break;
case LEFT:
if(e.getSlot() == -999){
page.onOutsideWindowClick(e);
page.onOutsideWindowLeftClick(e);
}
break;
}
}

switch (e.getClick()){
case WINDOW_BORDER_RIGHT:
page.onWindowBorderRightClick(e);
break;
case WINDOW_BORDER_LEFT:
page.onWindowBorderLeftClick(e);
break;
case RIGHT:
if(e.getSlot() == -999){
page.onOutsideWindowClick(e);
page.onOutsideWindowRightClick(e);
}
break;
case LEFT:
if(e.getSlot() == -999){
page.onOutsideWindowClick(e);
page.onOutsideWindowLeftClick(e);
}
break;
}

e.setCancelled(true);
Expand Down

0 comments on commit 79ec5fe

Please sign in to comment.