Skip to content

Commit

Permalink
no else? :trollface:
Browse files Browse the repository at this point in the history
  • Loading branch information
Niilyx committed Oct 28, 2022
1 parent 4357b01 commit 0658e36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/fr/efreicraft/eclobby/listeners/Click.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public void onClick(PlayerInteractEvent event) {
event.setCancelled(false);
} else
event.setCancelled(true);
} else
}
if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK) { // If player is right-clicking
if (event.getItem() != null) { // If item in player's hand is not null
if (event.getItem().getType() == org.bukkit.Material.COMPASS) { // If item in player's hand is a compass
Expand Down

0 comments on commit 0658e36

Please sign in to comment.