Skip to content

Commit

Permalink
Changed cancel to the proper one for a right click event
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Aug 20, 2024
1 parent c1de9a3 commit 8f9462e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/resources/server/recipes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ public static void useItemOnBlock(UseItemOnBlockEvent event) {
level.addFreshEntity(entity);
}
// Cancel the event to stop the interaction pipeline.
event.setCanceled(true);
event.cancelWithResult(ItemInteractionResult.sidedSuccess(level.isClientSide));
}
}
```
Expand Down

1 comment on commit 8f9462e

@neoforged-pages-deployments
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploying with Cloudflare Pages

Name Result
Last commit: 8f9462e49019be3ff829d7c4eeb11dffd1d5f408
Status: ✅ Deploy successful!
Preview URL: https://3d4f3795.neoforged-docs-previews.pages.dev
PR Preview URL: https://pr-155.neoforged-docs-previews.pages.dev

Please sign in to comment.