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

Make Ender Dragon's XP drop fire LivingExperienceDropEvent for each "batch" of XP #71

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

Ecdcaeb
Copy link
Contributor

@Ecdcaeb Ecdcaeb commented Feb 24, 2024

this might not be as flexible as people want, but maybe just go for simple: just fire the event once for each "batch" of XP it spawns? the value is known for each batch in this case

Fix MinecraftForge/MinecraftForge#4910 ?

>this might not be as flexible as people want, but maybe just go for simple: just fire the event once for each "batch" of XP it spawns? the value is known for each batch in this case

MinecraftForge/MinecraftForge#4910
Copy link
Member

@Rongmario Rongmario left a comment

Choose a reason for hiding this comment

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

This fix is fine. Will be pulled in after the changes.

private void func_184668_a(int p_184668_1_)
{
+ p_184668_1_ = net.minecraftforge.event.ForgeEventFactory.getExperienceDrop(this, this.field_70717_bb, p_184668_1_);
+ if(p_184668_1_>0)
Copy link
Member

Choose a reason for hiding this comment

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

if(p_184668_1_>0) isn't needed here.

@Rongmario Rongmario merged commit 8a0d143 into CleanroomMC:main Feb 26, 2024
1 check failed
@Ecdcaeb Ecdcaeb deleted the dragon_drops branch March 2, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ender Dragon's XP drop doesn't trigger LivingExperienceDropEvent
2 participants