Skip to content

Commit

Permalink
Tweaks to interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
NahuLD committed May 15, 2024
1 parent 64678b4 commit b0d57b7
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1513,10 +1513,6 @@ void onPlayerSignOpen(@NotNull PlayerSignOpenEvent event)
void onPlayerInteract(PlayerInteractEvent event)
{
//not interested in left-click-on-air actions
if (event.useInteractedBlock() == Event.Result.DENY && event.useItemInHand() == Event.Result.DENY) {
return;
}

Action action = event.getAction();
if (action == Action.LEFT_CLICK_AIR) return;

Expand Down

0 comments on commit b0d57b7

Please sign in to comment.