Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Locks Fix - Existing Doors

[url=https://steamcommunity.com/sharedfiles/filedetails/?id=3686112421][img]https://images.steamusercontent.com/ugc/16256564158279442476/E89B3FF4F55B30F3A752FB2C6A9E9B3882C7F004/[/img][/url] Locks Fix - Existing Doors Fixes Locks mod crashing on doors that existed before the mod was installed. No more need to rebuild doors. Locks Compatibility Fix Adding the Locks mod to an existing save? Enjoy your NullReferenceException on every door. This fix patches the crash that occurs when doors built before installing Locks lack the expected lock state data. No more rebuilding every door in your colony. The problem The Locks mod expects all doors to have initialized lock data (allowed pawns lists, mechanoid access lists, etc.). Doors that existed before Locks was installed have null values for these fields, causing a crash when the mod tries to copy lock state. The fix A Harmony prefix on [b]LockState.CopyFrom()[/b] that initializes null collections with empty lists before the original method runs. Simple, targeted, no side effects. Compatibility [list] [*] Requires: [url=https://steamcommunity.com/workshop/filedetails/?id=2009463077]Harmony[/url] and [url=https://steamcommunity.com/workshop/filedetails/?id=1157085076]Locks[/url] [*] Safe to add mid-save (that's the whole point) [*] Does nothing on new saves where the issue doesn't exist [/list] Credits This is a compatibility patch for [url=https://steamcommunity.com/workshop/filedetails/?id=1157085076]Locks[/url] by [b]Avius[/b]. All credit for the original Locks mod goes to them — this mod only fixes a specific crash when adding Locks to an existing save. [hr] [i]Compatible with RimWorld 1.6[/i]