Decompiled source of ClearSkies v1.0.1

plugins/ClearSkies.dll

Decompiled 2 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("ClearSkies")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClearSkies")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e3243d22-4307-4008-ba36-9f326008cde5")]
[assembly: AssemblyFileVersion("0.0.1.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("0.0.1.0")]
namespace ClearSkies;

[BepInPlugin("hu.jard.ClearSkies", "ClearSkies", "1.0.1")]
internal class ClearSkies : BaseUnityPlugin
{
	public const string PluginGUID = "hu.jard.ClearSkies";

	public const string PluginName = "ClearSkies";

	public const string PluginVersion = "1.0.1";

	private void Awake()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("hu.jard.ClearSkies").PatchAll();
	}
}
[HarmonyPatch(typeof(ZNetScene))]
internal class RemoveYggdrasil
{
	[HarmonyPatch("Awake")]
	[HarmonyPostfix]
	private static void RemoveTree(ref ZNetScene __instance)
	{
		GameObject val = GameObject.Find("YggdrasilBranch");
		if ((Object)(object)val != (Object)null)
		{
			Object.Destroy((Object)(object)val);
		}
	}
}