Harder Natural Healing

Harder Natural Healing

2M Downloads

Ignores NaturalRegen setting in Minecraft

rockdemon696 opened this issue ยท 5 comments

commented

Minecraft: 1.18.1 Forge: 39.0.64 It ignores NaturalRegen: False. Furthermore it tries to heal even when healingPerSecond is set to 0 in the configs causing hunger to decrease despite no regen occurring.

commented

I put in a fix for this but realized later that it is intended to cause extra exhaustion when you are wounded. So later I'll be putting in a fix that if that is non-zero, it will apply it once per second if you are wounded. If it is zero it will skip over the code silently.

commented

Please provide a pastebin of your configuration file.
Thanks!
MacTso

commented

It's okay. I had two other issues tonight. I'll look at this tomorrow.

It might be minecraft is doing it if you are wounded. Or it might be something I introduced during the mapping upgrades. Or it could be an issue with Forge. I've set up your config in the test environment. Thanks for the pastebin.

Thanks for the config. How many hit points was your man at (roughly)?

Cheers,
MacTso

commented

Sorry it took so long to get this. I wasn't at my PC when I noticed the message. https://pastebin.com/RsZgLNGq

commented

Okay--- I'm working on a fix.
Once per second,

HarderNaturalHealing (HNH) currently causes 0 "getExtraExhaustionWhenHurt" per second if the player is wounded.

Then it heals 0 points of damage once per second and then adds the "HealingExhaustionCost"

I'll add in a test for 0 and not execute the code if the healing amount is zero.

Until this is in, you can run "/hardernaturalhealing 2-healingExhaustionCost 0.0" to stop the extra exhaustion.

or you can set this section of the config:
#healingExhaustionCost - Hunger exhausted per healing event.
#Range: 0.0 ~ 10.0
healingExhaustionCost = 1.0

Hope this helps!