File tree Expand file tree Collapse file tree
src/main/java/plugily/projects/thebridge/arena Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747import plugily .projects .minigamesbox .classic .utils .version .xseries .XBlock ;
4848import plugily .projects .minigamesbox .classic .utils .version .xseries .XMaterial ;
4949import plugily .projects .minigamesbox .classic .utils .version .xseries .XSound ;
50+ import plugily .projects .minigamesbox .classic .utils .version .xseries .inventory .XInventoryView ;
5051import plugily .projects .thebridge .Main ;
5152import plugily .projects .thebridge .arena .base .Base ;
5253import plugily .projects .thebridge .arena .managers .ScoreboardManager ;
@@ -614,8 +615,8 @@ public void onItemMove(InventoryClickEvent event) {
614615 if (plugin .getArenaRegistry ().getArena (((Player ) event .getWhoClicked ())).getArenaState ()
615616 != IArenaState .IN_GAME ) {
616617 if (event .getClickedInventory () == event .getWhoClicked ().getInventory ()) {
617- if (event .getView ().getType () == InventoryType .CRAFTING
618- || event .getView ().getType () == InventoryType .PLAYER ) {
618+ if (XInventoryView . of ( event .getView () ).getType () == InventoryType .CRAFTING
619+ || XInventoryView . of ( event .getView () ).getType () == InventoryType .PLAYER ) {
619620 event .setResult (Event .Result .DENY );
620621 }
621622 }
You can’t perform that action at this time.
0 commit comments