Skip to content

Commit

Permalink
minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Nov 13, 2023
1 parent 0987233 commit 0494e56
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ private void onPrePumpkinExplode(PrePumpkinExplodeEvent event) {
if (this.players_on_cooldown.getIfPresent(exploderUniqueId) == null) {
this.players_on_cooldown.put(exploderUniqueId, true);
} else {
event.setCancelled(true);
event.setPrecedingCancelled(true);
event.setCancelled(true);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void disable() {
}

@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
private void onBlockLeftClick(PlayerInteractEvent event) {
private void onBlockRightClick(PlayerInteractEvent event) {
if (!event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) return;

final Block clicked = event.getClickedBlock();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void disable() {
}

@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)
private void onBlockLeftClick(PlayerInteractEvent event) {
private void onBlockRightClick(PlayerInteractEvent event) {
if (!event.getAction().equals(Action.RIGHT_CLICK_BLOCK)) return;

final Block clicked = event.getClickedBlock();
Expand Down

0 comments on commit 0494e56

Please sign in to comment.