Closed boformer closed 4 years ago
This patch causes crash to desktop:
[HarmonyPatch(typeof(Workshop), "UpdateItem", new Type[]
{
typeof(PublishedFileId),
typeof(string),
typeof(string),
typeof(string),
typeof(string),
typeof(string),
typeof(string[])
})]
public static class WorkshopUpdateItemPatch {
private static void Prefix(string contentPath, ref string[] tags) {
if (File.Exists(Path.Combine(contentPath, "ThemeMix.xml"))) {
tags = new string[2]
{
"Map Theme",
"Theme Mix"
};
}
}
}
Crash to Desktop: