Skip to content

Commit

Permalink
Merge pull request #290 from noahboa27/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlama authored Feb 17, 2025
2 parents 5be4860 + 1efdb04 commit 12626c3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public DoubleDoorListener(Context<Trifles> context) {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void on_player_interact(PlayerInteractEvent event) {
if (event.hasBlock() && event.getAction() == Action.RIGHT_CLICK_BLOCK) {
if (event.getPlayer().isSneaking()) {
return;
}
handle_double_door(event.getClickedBlock());
}
}
Expand Down

0 comments on commit 12626c3

Please sign in to comment.