Fix DarkTard's unused missing namespace
This commit is contained in:
14
CringeLauncher/Patches/DarkTardMissingNamespacePatch.cs
Normal file
14
CringeLauncher/Patches/DarkTardMissingNamespacePatch.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Reflection.Emit;
|
||||
using HarmonyLib;
|
||||
using Sandbox.Game.World;
|
||||
|
||||
namespace CringeLauncher.Patches;
|
||||
|
||||
[HarmonyPatch(typeof(MyScriptManager), nameof(MyScriptManager.Init))]
|
||||
public static class DarkTardMissingNamespacePatch
|
||||
{
|
||||
private static void Postfix(Dictionary<string, string> ___m_compatibilityChanges)
|
||||
{
|
||||
___m_compatibilityChanges["using System.Runtime.Remoting.Metadata.W3cXsd2001;"] = "";
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user