Skip to content

Add API for explosions to damage the explosion cause#11177

Closed
sh-dima wants to merge 8 commits into
PaperMC:masterfrom
sh-dima:master
Closed

Add API for explosions to damage the explosion cause#11177
sh-dima wants to merge 8 commits into
PaperMC:masterfrom
sh-dima:master

Conversation

@sh-dima
Copy link
Copy Markdown
Contributor

@sh-dima sh-dima commented Jul 27, 2024

This PR is to add an API feature which expands the functionality of World#createExplosion by adding the option to deal damage to the source entity (this is not the default behaviour). This deals with this issue (not technically a bug, but still something that I think should be addressed).

The API is expanded by overloading existing World#createExplosion methods with a new boolean shouldDamageSource parameter. When true, the entity specified as the source will be damaged by the explosion. Existing behaviour is not changed.

@sh-dima sh-dima requested a review from a team as a code owner July 27, 2024 18:37
@github-actions
Copy link
Copy Markdown

Please do not open pull requests from the master branch, create a new branch instead.

@github-actions github-actions Bot closed this Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants