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 TumbleGuard v1.1.5
TumbleGuard.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 HarmonyLib; using Photon.Pun; 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("TumbleGuard")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TumbleGuard")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e431d78a-5164-4e8b-acf6-6ed80d0de4b5")] [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 Root { [BepInPlugin("Kraut-TumbleGuard-v1.1.0", "TumbleGuard", "1.1.0")] public class Plugin : BaseUnityPlugin { public const string modGUID = "Kraut-TumbleGuard-v1.1.0"; public const string modName = "TumbleGuard"; public const string modVersion = "1.1.0"; public static Plugin PluginInstance; public static ManualLogSource LoggerInstance; private readonly Harmony harmony = new Harmony("Kraut-TumbleGuard-v1.1.0"); public void Awake() { if ((Object)(object)PluginInstance == (Object)null) { PluginInstance = this; } LoggerInstance = ((BaseUnityPlugin)PluginInstance).Logger; harmony.PatchAll(); } } } namespace TumbleGuard { [HarmonyPatch(typeof(PlayerTumble))] internal class PlayerTumblePatch { [HarmonyPrefix] [HarmonyPatch("Update")] public static void PreFixUpdate(PlayerTumble __instance, PhysGrabObject ___physGrabObject) { if (!((Object)(object)__instance == (Object)null) && !((Object)(object)___physGrabObject == (Object)null) && ___physGrabObject.grabbed && __instance.playerAvatar.photonView.IsMine && Input.GetKey((KeyCode)122)) { ___physGrabObject.playerGrabbing.ForEach(delegate(PhysGrabber physGrabber) { physGrabber.photonView.RPC("ReleaseObjectRPC", (RpcTarget)0, new object[2] { true, 0.1f }); }); } } } }