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

[Issue] AdvancedEntityDeathEvent setDropsCustomDrops(false) appears to force the entity to drop the normal vanilla loot, breaking plugins that also modify an entities loot. #341

Open
M-Joyce opened this issue Mar 3, 2022 · 0 comments
Labels

Comments

@M-Joyce
Copy link

M-Joyce commented Mar 3, 2022

Describe the bug
When setDropsCustomDrops(false) in AdvancedEntityDeathEvent, it appears that AS forces that entity to drop the vanilla loot in some way, instead of handing control back over to other plugins.

To Reproduce
In AdvancedEntityDeathEvent e, use setDropsCustomDrops(false), and then in EntityDeathEvent e do e.getDrops().addAll(SomeItemStacks).

You will see that the mob will drop the vanilla items instead of "SomeItemStacks", despite .getDrops().addAll() being called AFTER setDropsCustomDrops(false)

Screenshots / Video
If applicable, add screenshots to help explain your problem.

Server Information (please complete the following information):

  • Paper 1.18
  • Plugin Version AS 3.6.19 (latest)
@M-Joyce M-Joyce added the issue label Mar 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant