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 FaeHummingMute v1.0.0
BepInEx/plugins/FaeHummingMute/FaeHummingMute.dll
Decompiled 5 hours agousing System; using System.Reflection; using System.Runtime.CompilerServices; using BepInEx; using HarmonyLib; using UnityEngine; [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: AssemblyVersion("0.0.0.0")] namespace FaeHummingMute; [BepInPlugin("fai.faehummingmute", "Fae Humming Mute", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public sealed class Plugin : BaseUnityPlugin { [HarmonyPatch(typeof(ZSFX), "Awake")] private static class MuteHumming { [HarmonyPrefix] private static void Prefix(ZSFX __instance) { string name = ((Object)((Component)__instance).gameObject).name; if (string.Equals(name, "sfx_fae_idle_RtD", StringComparison.Ordinal) || string.Equals(name, "sfx_fae_idle_RtD(Clone)", StringComparison.Ordinal)) { AudioSource component = ((Component)__instance).GetComponent<AudioSource>(); if ((Object)(object)component != (Object)null) { component.mute = true; } } } } private const string PluginGuid = "fai.faehummingmute"; private const string HummingPrefab = "sfx_fae_idle_RtD"; private void Awake() { //IL_0005: Unknown result type (might be due to invalid IL or missing references) new Harmony("fai.faehummingmute").PatchAll(typeof(Plugin).Assembly); } }