Files
se-launcher/CringeLauncher/Patches/TypeTableRegisterPatch.cs
2022-12-25 21:34:50 +07:00

16 lines
413 B
C#

using HarmonyLib;
using VRage.Library.Collections;
using VRage.Network;
using VRage.Utils;
namespace CringeLauncher.Patches;
[HarmonyPatch(typeof(MyTypeTable), "IsSerializableClass")]
public static class TypeTableRegisterPatch
{
private static void Postfix(Type type, ref bool __result)
{
if (type == typeof(Delegate) || type == typeof(MulticastDelegate))
__result = true;
}
}