Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dropping in cancelled death event #4290

Merged
merged 3 commits into from
Aug 30, 2021

Conversation

TPGamesNL
Copy link
Member

@TPGamesNL TPGamesNL commented Aug 18, 2021

Description

Fixes dropping items in a cancelled death event (cancellation is only available on Paper). The code removed was supposed to make item dropping in a death event add it to the event's drops, but this can (and IMO should) be done using the drops or experience expression.

I could've added a condition to make sure the event isn't cancelled, but that would not prevent the bug from happening when the event is cancelled after the drop effect is called.

I also cleaned up the file and merged the two patterns, using a parse mark.


Target Minecraft Versions: any
Requirements: none
Related Issues: #4288

@TPGamesNL TPGamesNL added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Aug 18, 2021
@TPGamesNL TPGamesNL merged commit ffcbe14 into SkriptLang:master Aug 30, 2021
@TPGamesNL TPGamesNL deleted the fix/death-event-dropping branch August 30, 2021 16:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants