Diversity Fix
Unofficial compatibility patcher that makes Diversity 3.1.0 (IntegrityChaos) work on the current Lethal Company version. Private use.Diversity Fix 1.0.0 (unofficial)
Small BepInEx preloader patcher. On game start, before plugins load, it finds Diversity Remastered.dll
(Diversity 3.1.0 by IntegrityChaos, https://thunderstore.io/c/lethal-company/p/IntegrityChaos/Diversity/)
and, only if needed, rewrites five references to game code that changed in newer Lethal Company versions:
PlayerControllerB.KillPlayer- passes the newsetOverrideDropItemsargument with the game default (false).PlayerControllerB.HasLineOfSightToPosition- passes the newlayerMaskargument with the game default (-1).new SpawnableEnemyWithRarity()- uses the new(EnemyType, int)constructor.DropAllHeldItemsServerRpc()(removed) - replaced byDropAllHeldItemsAndSyncNonexact().DunGen.Door- type moved from Assembly-CSharp to the DunGen assembly.
No gameplay changes. Diversity is licensed CC BY-NC-SA 4.0; this patch is shared non-commercially under the same terms.
Check the BepInEx log for lines starting with [DiversityFix].
