Skip to content

Don't fire TNTPrimeEvent for EnderDragon + fixes#8075

Closed
Owen1212055 wants to merge 3 commits into
PaperMC:masterfrom
Owen1212055:fix-enderdragon-prime
Closed

Don't fire TNTPrimeEvent for EnderDragon + fixes#8075
Owen1212055 wants to merge 3 commits into
PaperMC:masterfrom
Owen1212055:fix-enderdragon-prime

Conversation

@Owen1212055
Copy link
Copy Markdown
Member

This seems to have been back when the patch was originally made, but it doesn't make much sense for this to be here.

This caused every single block broken by the dragon to fire a TNTPrimeEvent (even if it wasn't TNT) IF EntityExplodeEvent yield was set to anything but 0.
Additionally, blocks that actually were TNT would fire another event because wasExploded calls the event.
This does cause a small behavior change in that this event will no longer cause the block to be removed.
However, because this event uses an EntityExplodeEvent you can still customize these blocks.

The behavior of tnt exploding/blocks dropping from ender dragons is not vanilla behavior.

@Machine-Maker
Copy link
Copy Markdown
Member

The behavior of tnt exploding/blocks dropping from ender dragons is not vanilla behavior.

well we need to get rid of this then right?

@Owen1212055
Copy link
Copy Markdown
Member Author

The behavior of tnt exploding/blocks dropping from ender dragons is not vanilla behavior.

well we need to get rid of this then right?

It's plugin set behavior by setting the yield to anything but 0 in the EntityExplodeEvent, sorry that wasn't clarified.

@Owen1212055 Owen1212055 changed the title Don't fire TNTPrimeEvent for EnderDragon Don't fire TNTPrimeEvent for EnderDragon + fixes Jun 30, 2022
@Owen1212055
Copy link
Copy Markdown
Member Author

Updated with another patch that shows the level effect + don't explode tnt.

@Owen1212055 Owen1212055 force-pushed the fix-enderdragon-prime branch from 3a54f20 to d2d3d30 Compare July 20, 2022 17:01
@Owen1212055 Owen1212055 requested a review from a team as a code owner July 20, 2022 17:01
@Owen1212055
Copy link
Copy Markdown
Member Author

Diff on change + rebased

@Owen1212055 Owen1212055 requested a review from kennytv November 26, 2022 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

6 participants