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 JugCompany v1.0.0
JugCompany.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using Microsoft.CodeAnalysis; using UnityEngine; using UnityEngine.SceneManagement; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyCompany("JugMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("JugMod")] [assembly: AssemblyTitle("JugMod")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } } [BepInPlugin("maxthetomas.JugCompany", "JugCompany", "1.0.0")] public class JugMod : BaseUnityPlugin { private AssetBundle bundle; internal void Awake() { Debug.Log((object)"Initializing Jug Mod!"); LoadAssets(); SceneManager.activeSceneChanged += delegate { GameObject val = GameObject.Find("Environment/HangarShip/Plane.001"); if (!Object.op_Implicit((Object)(object)val)) { Debug.LogError((object)"(jugmod) Could not find Plane.001. Aborting."); } else { MeshRenderer component = val.GetComponent<MeshRenderer>(); for (int i = 0; i < ((Renderer)component).materials.Length; i++) { Material val2 = ((Renderer)component).materials[i]; if (((Object)val2).name.ToLower().Contains("tips")) { val2.mainTexture = (Texture)(object)bundle.LoadAsset<Texture2D>("Assets/company/Tips.png"); } else { val2.mainTexture = (Texture)(object)bundle.LoadAsset<Texture2D>("Assets/company/posters.png"); } ((Renderer)component).materials[i] = val2; } } }; } private void LoadAssets() { Assembly executingAssembly = Assembly.GetExecutingAssembly(); bundle = AssetBundle.LoadFromStream(executingAssembly.GetManifestResourceStream("JugMod.data.bundle")); } }