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

loadBefore Achtung #53

Closed DomBarber closed 4 weeks ago

DomBarber commented 1 month ago

Achtung Compatibility Fixes compatibility bug with a popular mod called Achtung, which adds "Rescue" / "Rescuing" workTypeDef, which can break Better Pawn Control tab - it occurs when Achtung is above in the load order.

More Info:

Impact: Medium to High - 2 variants of this bug depending on config when user saves game: 1) Leaves you without Rescue in the work tab + reference errors 2) Can completely breaks the Better Pawn Control tab & causes error spam

Changes: Making these changes, I have managed to restore a test save with errors to functioning state. PR created to help defend wider users from this problem

TheLonerD commented 4 weeks ago

Good catch. Interesting.. Maybe we can filter out "inactive" worktypes in bpc to prevent this kind of issues.

voult2 commented 4 weeks ago

Thanks!