File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace ProgressRenderer
66{
7-
87 [ StaticConstructorOnStartup ]
98 static class HarmonySetup
109 {
1110 static HarmonySetup ( )
1211 {
1312 var harmony = new Harmony ( "rimworld.neptimus7.progressrenderer" ) ;
14- harmony . PatchAll ( Assembly . GetExecutingAssembly ( ) ) ;
13+
14+ if ( LoadedModManager . RunningModsListForReading . Any ( x => x . Name == "scherub.planningextended" ) )
15+ harmony . PatchCategory ( "PlanningExtended" ) ;
16+
17+ harmony . PatchAllUncategorized ( Assembly . GetExecutingAssembly ( ) ) ;
1518 }
1619 }
1720}
Original file line number Diff line number Diff line change 44
55namespace ProgressRenderer
66{
7+ [ HarmonyPatchCategory ( "PlanningExtended" ) ]
78 [ HarmonyPatch ( "PlanDesignation" , nameof ( Designation . DesignationDraw ) ) ]
89 public static class Harmony_PlanDesignation_DesignationDraw
910 {
1011 public static bool Prefix ( Designation __instance )
1112 {
1213 try
1314 {
14- if ( __instance . def == null ) return true ;
15+ if ( __instance . def == null ) return true ;
1516
1617 var target = __instance . target ;
1718
1819 Map map = target . HasThing ? target . Thing . MapHeld : Find . CurrentMap ;
1920
2021 var renderManager = map ? . GetComponent < MapComponent_RenderManager > ( ) ;
2122
22- if ( renderManager ? . Rendering == false )
23- return true ;
23+ if ( renderManager ? . Rendering == false ) return true ;
2424
2525 return PrModSettings . RenderDesignations ;
2626 }
You can’t perform that action at this time.
0 commit comments