DawnLibNullDungeonGuard
Prevents DawnLib from blocking level generation when LethalLevelLoader selects a dungeon flow without Dawn metadata.DawnLib Null Dungeon Guard
Prevents a DawnLib NullReferenceException during moon loading when LethalLevelLoader selects a dungeon flow that does not have DawnDungeonInfo metadata.
Without this guard, DawnLib can stop the game at the atmosphere/loading screen with a stack trace containing:
Dawn.DungeonRegistrationHandler.LoadDungeonBundle
LethalLevelLoader.LethalLevelLoaderNetworkManager.SetRandomExtendedDungeonFlowClientRpc
When that happens, this plugin skips only DawnLib's metadata-specific bundle step for the affected dungeon flow and resumes normal RuntimeDungeon.Generate() generation. It also skips DawnLib tile-set injection when a non-Dawn interior contains archetypes without Dawn metadata. DawnLib behavior is unchanged for flows that do have valid Dawn metadata.
Requirements
- BepInExPack
- DawnLib 0.9.24
Multiplayer
Install this mod on every player using the shared modpack. It is a compatibility guard and does not add content or change dungeon weights.
Notes
This prevents the crash; it does not repair the source mod that registered an invalid or non-Dawn dungeon flow. Check BepInEx/LogOutput.log after testing for a warning containing the affected dungeon flow name, then update or remove that interior mod if needed.
