Skip to content

fix MC-219981 #434

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

Draft
wants to merge 1 commit into
base: 1.21.7
Choose a base branch
from

Conversation

MicrocontrollersDev
Copy link
Contributor

Fixes https://bugs.mojang.com/browse/MC/issues/MC-219981: If zombies spawned with max health over 20 (leader zombie bonus), they will have 20 health instead of their max health

This fix is slightly more complicated than I would have done it, as I want to follow how the open NeoForge PR does it. Instead of simply setting the zombie health to max health, it checks for damage taken and subtracts that. I'm not sure under what conditions they would spawn with less health, but in another mod's GitHub issue discussion there were zombies at 19 health, so I guess this works. I would have scaled with max HP instead of just subtracting damage, but I want to keep this in line with what NeoForge does.

Keeping in draft until the NeoForge PR comes to a consensus and is merged.

@isXander
Copy link
Owner

Could you link the NeoForge PR?

@MicrocontrollersDev
Copy link
Contributor Author

neoforged/NeoForge#2451

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.

2 participants