generic type thingy :)

This commit is contained in:
XtraCube committed 2024-09-13 20:33:50 -04:00
1 parent 9a27a0c3d8
commit 91b7901528
1 file changed
+4
@@ -45,6 +45,10 @@ public static class ModdedOptionsManager
TypeToGroup.Add(type, group);
pluginInfo.OptionGroups.Add(group);
typeof(OptionGroupSingleton<>).MakeGenericType(type)
.GetField("_instance", BindingFlags.Static | BindingFlags.NonPublic)!
.SetValue(null, group);
return true;
}