Decompiled source of LiquidSystemDisabler v0.0.1

plugins/LiquidSystemDisabler.dll

Decompiled a day ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Unity.IL2CPP;
using GTFO.API;
using HarmonyLib;
using Player;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")]
[assembly: AssemblyCompany("LiquidSystemDisabler")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("LiquidSystemDisabler")]
[assembly: AssemblyTitle("LiquidSystemDisabler")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LiquidSystemDisabler;

[BepInPlugin("Ribbit.LiquidSystemDisabler", "LiquidSystemDisabler", "1.0.0")]
public class Plugin : BasePlugin
{
	public override void Load()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("LiquidSystemDisabler").PatchAll();
		EventAPI.OnExpeditionStarted += LiquidSystemDisabler;
	}

	public static void LiquidSystemDisabler()
	{
		Object.Destroy((Object)(object)((Component)PlayerManager.GetLocalPlayerAgent().FPSCamera).GetComponent<GlassLiquidSystem>());
	}
}