Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of modded check v1.0.0
ModdedCheck.dll
Decompiled 42 minutes agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("ModdedCheck")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("A template for Lethal Company")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+e26360f7c96fa668bb8320c512c7b0f93350c8c4")] [assembly: AssemblyProduct("ModdedCheck")] [assembly: AssemblyTitle("ModdedCheck")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace ModdedCheck { [BepInPlugin("asta.moddedcheck", "ModdedCheck", "1.0.0")] public class Plugin : BaseUnityPlugin { internal static ManualLogSource Log; private void Awake() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_0017: Expected O, but got Unknown Log = ((BaseUnityPlugin)this).Logger; Harmony val = new Harmony("asta.moddedcheck"); val.PatchAll(typeof(Plugin).Assembly); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin asta.moddedcheck is loaded!"); } } public static class PluginInfo { public const string PLUGIN_GUID = "asta.moddedcheck"; public const string PLUGIN_NAME = "ModdedCheck"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace ModdedCheck.Patches { [HarmonyPatch] internal class ChangeModdedBoxValue { [HarmonyPrefix] [HarmonyPatch(typeof(SteamLobbyManager), "OnEnable")] private static void ChangeValue(SteamLobbyManager __instance, ref bool ___sortWithModdedClients) { ((Behaviour)__instance.sortWithModdedClientsCheckbox).enabled = true; ___sortWithModdedClients = true; Plugin.Log.LogInfo((object)"value is changed :D"); } } }