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

Merged
merged 3 commits into from
Jul 24, 2025
Merged

fix MC-219981 #434

merged 3 commits into from
Jul 24, 2025

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

isXander added 2 commits July 24, 2025 15:54
# Conflicts:
#	PATCHED.md
#	src/main/resources/assets/debugify/lang/en_us.json
#	src/main/resources/debugify.mixins.json
@isXander isXander marked this pull request as ready for review July 24, 2025 15:02
@isXander isXander merged commit 450cdf3 into isXander:1.21.7 Jul 24, 2025
1 check passed
@MicrocontrollersDev MicrocontrollersDev deleted the mc-219981 branch July 24, 2025 18: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.

2 participants