Narolith-HearthFix icon

HearthFix

Fixes newly placed fireplaces and wisp torches not lighting when NoSmokeSimplified or NoSmokeStayLit is installed.

Last updated 2 months ago
Total downloads 316
Total rating 0 
Categories Mods Tweaks Client-side Utility AI Generated
Dependency string Narolith-HearthFix-1.1.0
Dependants 1 other package depends on this package

README

HearthFix

HearthFix fixes a bug where newly placed fireplaces and wisp torches fail to light when NoSmokeSimplified or NoSmokeStayLit is installed. Affected pieces appear placed but never start burning, requiring a relog or world reload to fix.

Problem

NoSmokeSimplified and NoSmokeStayLit patch Fireplace.IsBurning to check the ZDO "fuel" key directly. For a freshly placed fireplace, that key hasn't been written yet — GetFloat("fuel", 0f) returns 0, so IsBurning incorrectly returns false. This affects hearths, campfires, and wisp torches (piece_demister).

Valheim Plus FireSource with infinite fires enabled has the same effect: V+ stops fuel consumption but never writes a positive fuel value, keeping fuel at 0 indefinitely.

Fix

A Postfix on Fireplace.IsBurning runs at Priority.Low — after the other mods' patches. It detects the absent fuel key via a -1 sentinel and restores IsBurning = true for newly placed pieces. It also checks the V+ FireSource config via reflection and does the same when infinite fires is active.

Compatibility

  • Soft dependency on NoSmokeSimplified, NoSmokeStayLit, and Valheim Plus — loads and works correctly regardless of which are installed
  • Client-side only
  • No Jotunn required

Installation

Install via Thunderstore or drop Narolith.HearthFix.dll into your BepInEx plugins folder.

Support

If you encounter any issues or have suggestions, open an issue on the GitHub repository.