1.0.0 public release!

This commit is contained in:
msk
2022-01-24 00:34:25 -08:00
parent 2f4ef7c87c
commit 28dddcc0d0
11 changed files with 172 additions and 6 deletions
+22
View File
@@ -2,6 +2,7 @@
using System.IO;
using System.Reflection;
using BepInEx;
using BepInEx.Bootstrap;
using BepInEx.Configuration;
using UnityEngine;
using UnityEngine.SceneManagement;
@@ -32,6 +33,8 @@ public class MeatKitPlugin : BaseUnityPlugin
private static readonly string BasePath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
#pragma warning restore 414
private bool lpcKilled = false;
public static AssetBundle bundle;
public static ConfigEntry<bool> showHPBackground;
@@ -85,5 +88,24 @@ public class MeatKitPlugin : BaseUnityPlugin
}
// DO NOT EDIT.
private void LoadAssets() {}
/// <summary>
/// Its only purpose: to kill TNH Leaderboard Player Count
/// </summary>
private void Update()
{
if (lpcKilled)
return;
foreach (var plugin in Chainloader.PluginInfos)
{
if (plugin.Key == "me.muskit.tnhLeaderboardPlayerCount")
{
Logger.LogWarning("TNH Leaderboard Player Count mod detected. Destroying it to avoid interference.");
Destroy(plugin.Value.Instance);
lpcKilled = true;
}
}
}
}
#endif