Please disclose if your mod was created primarily 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 EasterEggFilter v1.0.0
QuicksellFix.dll
Decompiled 5 months agousing System.Collections.Generic; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using QuickSell; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("QuicksellFix")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("QuicksellFix")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("85dbe3c4-afea-467e-b8c2-759e66ca372d")] [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 EasterEggFilter; [BepInPlugin("Ryoryoman_EasterFilter", "EasterFilter", "1.0.0")] public class FixQuickSell : BaseUnityPlugin { private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_000c: Expected O, but got Unknown Harmony val = new Harmony("EasterFilter"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"EasterFilter loaded successfully."); } } [HarmonyPatch(typeof(SellCommand))] internal static class EggFilterPatch { private static readonly ManualLogSource log = Logger.CreateLogSource("QuickSellFix"); [HarmonyPostfix] [HarmonyPatch("FilterItems")] private static void EggFilter(ref GrabbableObject[] __result) { List<GrabbableObject> list = new List<GrabbableObject>(); if (__result == null || __result.Length == 0) { __result = null; } GrabbableObject[] array = __result; foreach (GrabbableObject val in array) { if (!val.deactivated) { list.Add(val); } } __result = list.ToArray(); } }