Skip to content

Commit

Permalink
Fix dItem craft event cancellation
Browse files Browse the repository at this point in the history
Oddly specific chains of events, wee
  • Loading branch information
mcmonkey4eva committed May 12, 2017
1 parent fa6bded commit 80f1940
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -239,6 +239,7 @@ public void specialRecipeClick(InventoryClickEvent event) {
scriptEvent.recipe = recipeList;
scriptEvent.player = dPlayer.mirrorBukkitPlayer(player);
scriptEvent.resultChanged = false;
scriptEvent.cancelled = false;
scriptEvent.fire();
if (scriptEvent.cancelled) {
event.setCancelled(true);
Expand Down

0 comments on commit 80f1940

Please sign in to comment.