-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simple Slavery Compatibility #137
Comments
I'm the current maintainer of the 1.1 version. I just fixed this bug on my end, but it seems like it's caused by Prison Labor setting a pawn's Being new to RimWorld modding, I don't know if I'm handling this correctly, but here's how I think it could be fixed on Prison Labor's end: // Instead of __instance.workSettings = null;
__instance.workSettings = new Pawn_WorkSettings(__instance);
__instance.workSettings.EnableAndInitialize(); |
Looking on decompiled method SetFaction method just : |
Pawn.SetFaction calls If you don't you get an error (but it still seems to work). Edit: Oops, just remembered the patch is a prefix. Yeah, your code would be enough to work. |
Done. it will be in next patch :) |
The text was updated successfully, but these errors were encountered: