Decompiled source of RespawnSackBarcodeFix v1.0.0

RespawnSackBarcodeFix.dll

Decompiled 2 days ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Unity.IL2CPP;
using Decals;
using Il2CppSystem;
using LevelGeneration;
using UnityEngine;

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

[BepInPlugin("Amor.RespawnSackBarcodeFix", "RespawnSackBarcodeFix", "1.0.0")]
internal class EntryPoint : BasePlugin
{
	public override void Load()
	{
		((BasePlugin)this).Log.LogMessage((object)"RespawnSackBarcodeFix is now loaded!");
		LG_Factory.OnFactoryBuildDone += Action.op_Implicit((Action)BarcodeFixer);
	}

	public static void BarcodeFixer()
	{
		//IL_0052: Unknown result type (might be due to invalid IL or missing references)
		//IL_0058: Unknown result type (might be due to invalid IL or missing references)
		foreach (Decal item in Object.FindObjectsOfType<Decal>())
		{
			if (((Object)((Component)((Component)((Component)item).transform.parent).gameObject.transform.parent).gameObject).name.Contains("respawner"))
			{
				((Component)item).transform.rotation = default(Quaternion);
			}
		}
	}
}