Fuzss / mutantmonsters

The mutants are back! Face scary creatures and powerful beasts like never before.
https://www.curseforge.com/minecraft/mc-mods/mutant-monsters
GNU Affero General Public License v3.0
9 stars 8 forks source link

[Bug]: Mutant Zombie health resets to normal after re-spawn with RPG Difficulty Mod #47

Closed douglasg14b closed 12 months ago

douglasg14b commented 1 year ago

Mod Loader (Required)

Fabric

Minecraft Version (Required)

1.20.1

Mod Version (Required)

v8.0.2

Notes (Required)

The mutant zombie has it's health scaled by the RPG Difficulty mod. However, when the zombie is killed after the first time, it's health resets to the mod's default value when it respawns. Instead of using the scaled health.

Scaled:

image

After Respawn

image

Sometimes the max health is way off

image

cc https://github.com/Globox1997/RpgDifficulty/issues/68

latest.log (Optional)

No response

Fuzss commented 12 months ago

When setting the health for respawning, the mutant zombie uses the value returned by LivingEntity::getMaxHealth and scales that. RPGDifficulty should make sure that the new max health it sets is also returned by that method.