A BepInEx plugin for Casualties Unknown that fixes compatibility issues with third-party mods.
CUMod Fixer is a compatibility patch plugin that resolves conflicts between Casualties Unknown, KrokoshaCasualtiesMP ( multiplayer mod), and third-party mods like New Firearms and New Clothing.
- Prevents
BuildingEntity.Update()from throwingArgumentExceptionwhenResources.Load("DustBig")returnsnull.
- Prevents
RshGun.MpScareCheck()from throwing exceptions whenKrokoshaScavMultiGameObjectNetworkTrackeris missing on the item. - Prevents
RshGun.IsOnBack()from throwing aNullReferenceExceptionwhenNetPlayer.GetNetPlayerFromBody(body)returnsnullduring world generation. - Prevents
PlayerCameraPatch1.HandleLegacyGunUi()from throwing aNullReferenceExceptionwhenPlayerCamera.bodyisnullduring world generation. - Suppresses repeated "[NewFirearms] Can not add stun collider to spider" log warnings (only the first occurrence is logged).
- Prevents
RshClothing.Update()from throwing aNullReferenceExceptionwhenthis.itisnull.
- Prevents
KrokoshaGunScriptTrackerComponent.Update()from throwing aNullReferenceExceptionwhenPlayerCamera.main.bodyisnull.
