Wiki 9Minecraft Wiki 9Minecraft

How to Track Down NaN Bugs Using the Server Log

When Na Nny Reforked fixes a broken health or damage value during combat, it can record the event in your logs. This is useful for server administrators and modpack players who want to verify that the mod is catching errors, or who want to silence log output to keep their console clean.

Checking the Logs for Invalid Health Events

By default, logging is already enabled. Whenever an entity receives an invalid health value during an attack, damage, hurt, or heal event:

1. The mod cancels the broken calculation and resets the entity's health.

2. An error event is automatically written to the server log (or your local game log in singleplayer).

3. You can open your logs folder and check latest.log to see when and how often NaN health errors are being triggered during combat.

Disabling Error Logging

If another mod in your pack triggers math errors frequently, your server log might fill up with repeated error notices. You can turn this logging off without disabling the combat protection itself:

1. Navigate to your config folder and open the Na Nny Reforked configuration file.

2. Find the log setting (Default: true).

3. Change the value from true to false.

4. Save the file and restart your client or server. The mod will continue to patch broken damage and health values silently.

Join 9Minecraft News & Guides