voult2 / BetterPawnControl

A RimWorld mod that allows bulk assignment of animals to zones and colonists to outfits (or drugs) in one single action
MIT License
20 stars 21 forks source link

AssignManager Paste Action Bug? #56

Open JiaRG opened 1 week ago

JiaRG commented 1 week ago

https://github.com/voult2/BetterPawnControl/blob/71aad7a3b5c0da7e458652f4f373ea85f4c380ea/Source/Managers/AssignManager.cs#L483-L496

L488 should AssignManager.links.RemoveAll(x => x.zone == policy.id); ?

JiaRG commented 1 week ago

https://github.com/voult2/BetterPawnControl/blob/71aad7a3b5c0da7e458652f4f373ea85f4c380ea/Source/Base/WorkLink.cs#L63-L70 settings may be null

voult2 commented 1 week ago

On the first one, YES. It should be assignManager... what the hell On the second one, IDK. how can it be null if all pawns have default settings when spawned?

JiaRG commented 1 week ago

After integrating with the Achtung mod, when I save and load the archive, the log will show a lot of the following two lines of information: Could not load reference to Verse.WorkTypeDef named Rescuing Null key while loading dictionary of Verse.WorkTypeDef and System.Int32. label=settings