Skip to content

Commit

Permalink
Patch clicks block event
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Apr 22, 2019
1 parent 32c2514 commit da8b1d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public void playerClicksBlock(PlayerInteractEvent event) {
cancelled = event.isCancelled() && event.useItemInHand() == Event.Result.DENY; // Spigot is dumb!
this.event = event;
wasCancellationAltered = false;
fire(event);
fire(); // Explicitly don't use `fire(event)` due to spigot bork
if (wasCancellationAltered) { // Workaround for Spigot=Dumb!
event.setCancelled(cancelled);
}
Expand Down

0 comments on commit da8b1d1

Please sign in to comment.