Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
LethalLibPrefabGuard
Prevents landing soft-locks by cleaning null prefabs/items from LethalLib registrations before StartOfRound.Start, and names the broken mod in the log.
CHANGELOG
Changelog
1.1.0
- Rewrote the guard as a MonoMod hook installed after LethalLib's, so it actually runs before LethalLib's fragile loop (a Harmony prefix runs at the wrong layer and never fired).
- Added CULPRIT logging: names the mod that registered a null/broken item or enemy, using LethalLib's registration metadata.
- Also sanitizes
StartOfRound.allItemsListfor the host-side savedata fix path.
1.0.0
- Initial release (Harmony prefix approach — superseded).