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

Change compatibility check for Work Tab. #50

Closed Pahanda closed 1 month ago

Pahanda commented 1 month ago

Modify the compatibility check for Work Tab to look for string.Contains() instead of exact match.

This addresses issues with forked versions of Work Tab.

TheLonerD commented 1 month ago

You can do a comparison by packageId if forked version have the same packageId as original one

Pahanda commented 1 month ago

Unfortunately, the forked one uses "arof.fluffy.worktab.continued" while the original uses "fluffy.worktab". I suppose the mod could do a String.Compare() on that instead, but... however you choose is fine. I'm just making a bug report with a suggested fix, since I know enough about programming to do that. :)

TheLonerD commented 1 month ago

Oh ok.. Looks good to me.