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 ShipScrapFix v1.0.0
ShipScrapFix.dll
Decompiled a year agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("ShipScrapFix")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ShipScrapFix")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("d8ba1d23-9d0d-41f4-a9cb-86b805d17715")] [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 ShipScrapFix; [HarmonyPatch(typeof(PlayerControllerB), "SpawnPlayerAnimation")] internal class FixPatch { [HarmonyPostfix] private static void RegisterScrap() { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_001b: Unknown result type (might be due to invalid IL or missing references) //IL_0026: Unknown result type (might be due to invalid IL or missing references) GrabbableObject[] array = Object.FindObjectsOfType<GrabbableObject>(); for (int i = 0; i < array.Length; i++) { Bounds bounds = StartOfRound.Instance.shipInnerRoomBounds.bounds; if (((Bounds)(ref bounds)).Contains(((Component)array[i]).transform.position)) { array[i].isInShipRoom = true; } } } } [BepInPlugin("ShipScrapFix", "ShipScrapFix", "1.0.0")] public class Plugin : BaseUnityPlugin { private bool _patched; public static ManualLogSource Logger { get; set; } private void Awake() { if (_patched) { Logger.LogWarning((object)"Already Patched"); return; } Harmony.CreateAndPatchAll(typeof(FixPatch), "ShipScrapFix"); Logger = ((BaseUnityPlugin)this).Logger; Logger.LogInfo((object)"ShipScrapFix is loaded!"); _patched = true; } }