Some mods may be broken due to the recent Alloyed Collective update.
Decompiled source of No Item Pick Up On Collision v0.3.0
NoItemPickUpOnCollision/NoItemPickUpOnCollision.dll
Decompiled a year agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using Microsoft.CodeAnalysis; using MonoMod.RuntimeDetour; using RoR2; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("Rune580")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyFileVersion("0.3.0.0")] [assembly: AssemblyInformationalVersion("0.3.0")] [assembly: AssemblyProduct("NoItemPickUpOnCollision")] [assembly: AssemblyTitle("NoItemPickUpOnCollision")] [assembly: AssemblyVersion("0.3.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.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 NoItemPickUpOnCollision { [BepInPlugin("com.rune580.NIPUOC", "NoItemPickUpOnCollision", "0.3.0")] public class NipuocPlugin : BaseUnityPlugin { private static Hook _triggerHook; public void Start() { //IL_002e: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Expected O, but got Unknown MethodInfo? method = typeof(GenericPickupController).GetMethod("OnTriggerStay", BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic); MethodInfo method2 = typeof(NipuocPlugin).GetMethod("OnTriggerStayHook", BindingFlags.Static | BindingFlags.Public | BindingFlags.NonPublic); _triggerHook = new Hook((MethodBase)method, method2); } private static void OnTriggerStayHook(Action<GenericPickupController, Collider> orig, GenericPickupController self, Collider other) { } } public static class PluginInfo { public const string PLUGIN_GUID = "com.rune580.NIPUOC"; public const string PLUGIN_NAME = "NoItemPickUpOnCollision"; public const string PLUGIN_VERSION = "0.3.0"; } }