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 Lareins UnderwaterGear v1.0.0
plugins\Lareins_UnderwaterGear\Lareins_UnderwaterGear.dll
Decompiled 2 hours agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using HarmonyLib; using Lareins_Core; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("Lareins_UnderwaterGear")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("Lareins_UnderwaterGear")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("fc004079-e559-4a45-b663-6e92d8a88481")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace Lareins_UnderwaterGear; [BepInPlugin("com.lareins.underwatergear", "Lareins_UnderwaterGear", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class UnderwaterGearPlugin : BaseUnityPlugin { public const string ModGUID = "com.lareins.underwatergear"; public const string ModName = "Lareins_UnderwaterGear"; public const string ModVersion = "1.0.0"; public static ConfigEntry<bool> ModAktif; private void Awake() { //IL_0040: Unknown result type (might be due to invalid IL or missing references) ModAktif = ((BaseUnityPlugin)this).Config.Bind<bool>("Genel", "ModAktif", true, "Yuzerken ekipman kusanma ve kullanma sistemini acar"); CorePlugin.AyarEkle("Su Alti Ekipman", "Mod Aktif", "Yuzerken eldeki esyalari gizlemez ve ekipman kullanmaya izin verir.", ModAktif); new Harmony("com.lareins.underwatergear").PatchAll(typeof(UnderwaterGearPlugin)); } [HarmonyPatch(typeof(Humanoid), "HideHandItems")] [HarmonyPrefix] private static bool EsyaGizlemeEngelle(Humanoid __instance) { if (ModAktif.Value && ((Character)__instance).IsPlayer()) { return false; } return true; } [HarmonyPatch(typeof(Character), "IsSwimming")] [HarmonyPostfix] private static void SuAltiKusanma(Character __instance, ref bool __result) { if (ModAktif.Value && __instance.IsPlayer()) { string stackTrace = Environment.StackTrace; if (stackTrace.Contains("EquipItem") || stackTrace.Contains("UseItem")) { __result = false; } } } }