This is a Fork of the mod NaNy
The fork has been updated for the latest version of forge and with better compatability for the modpack MC Eternal 2, including a damage fallback that is applied in certain circumstances, but the mod is mostly identical. The license is the same and because the changes are so minimal all points are awarded to the original owner qther.
Additionally this mod helps to fix one of the most annoying issues currently plaguing modern minecraft, entities doing and receiving NaN damage.
It would be idea to locate the original source of this issue in every instance instead of a banaid solution but its time consuming and something for later.
Please do not contact the original author with questions or complaints about this fork, contact me.
NaNny
Because some mods can't keep their floats in control.
NaNny is a Minecraft Neo/Forge mod that cleans up after mods that set entities' health and/or absorption to NaN.
This is accomplished by hooking into the following events and cancelling and optionally healing the affected entities:
- LivingAttackEvent
- LivingDamageEvent
- LivingHealEvent
- LivingHurtEvent
NaNny creates a TOML configuration file in world/serverconfig/nanny-server.toml
The configuration file has the following options at present:
- doHeal - Enable setting the health of an entity when NaN is dealt or healed to them (Default true)
- health - Percentage of max health to set the entity to when NaN dealt or healed to them (Default 1.0)
- log - Whether or not to log events that set entities' health to NaN (Default true)