In your hospitality patch you are removing and adding comps from guest beds. It makes the optimization do not see the new comps. With this lines of code you can reset the cache after your hospitality patch code:
public static MethodInfo ComponentCache_ResetCompCache_Info = AccessTools.Method("PerformanceOptimizer.ComponentCache:ResetCompCache"); ComponentCache_ResetCompCache_Info.Invoke(null, new object[] { thing });
In your hospitality patch you are removing and adding comps from guest beds. It makes the optimization do not see the new comps. With this lines of code you can reset the cache after your hospitality patch code:
public static MethodInfo ComponentCache_ResetCompCache_Info = AccessTools.Method("PerformanceOptimizer.ComponentCache:ResetCompCache"); ComponentCache_ResetCompCache_Info.Invoke(null, new object[] { thing });