Fixed console spam
Checked if the correct thing was null, wow.
This commit is contained in:
parent
e6514d872e
commit
32d51c84ac
@ -4,7 +4,7 @@
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<AssemblyName>FuckYouBeta</AssemblyName>
|
||||
<Description>Fuck offs the beta warning (and version label in the bottom left)</Description>
|
||||
<Version>1.2.0</Version>
|
||||
<Version>1.2.1</Version>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Copyright>papershredder432#0883</Copyright>
|
||||
|
@ -1,14 +1,12 @@
|
||||
using BepInEx;
|
||||
using Comfort.Common;
|
||||
using EFT;
|
||||
using EFT.UI;
|
||||
using HarmonyLib;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
|
||||
namespace FuckYouBeta
|
||||
{
|
||||
[BepInPlugin("com.FuckYouBeta", "Fuck You Beta", "1.0.0")]
|
||||
[BepInPlugin("com.FuckYouBeta", "Fuck You Beta", "1.2.1")]
|
||||
public class Plugin : BaseUnityPlugin
|
||||
{
|
||||
private void Awake()
|
||||
@ -30,8 +28,8 @@ namespace FuckYouBeta
|
||||
|
||||
private void HideBetaSplash()
|
||||
{
|
||||
if (Singleton<CommonUI>.Instance == null) return;
|
||||
MenuScreen screen = Singleton<CommonUI>.Instance.MenuScreen;
|
||||
if (screen == null) return;
|
||||
|
||||
var field = typeof(MenuScreen).GetField("_alphaWarningGameObject", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
var e = field.GetValue(screen) as GameObject;
|
||||
@ -41,8 +39,8 @@ namespace FuckYouBeta
|
||||
|
||||
private void HideWatermark()
|
||||
{
|
||||
if (Singleton<PreloaderUI>.Instance == null) return;
|
||||
PreloaderUI preloaderUi = Singleton<PreloaderUI>.Instance;
|
||||
if (preloaderUi == null) return;
|
||||
|
||||
var field = typeof(PreloaderUI).GetField("_alphaVersionLabel", BindingFlags.NonPublic | BindingFlags.Instance);
|
||||
var e = field.GetValue(preloaderUi) as LocalizedText;
|
||||
|
Loading…
x
Reference in New Issue
Block a user