mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-03 17:38:30 +00:00
make PlayerAttachWatcher a QSBPatch
This commit is contained in:
parent
7791ab3bd6
commit
e8defd38df
@ -1,17 +1,12 @@
|
||||
using HarmonyLib;
|
||||
using QSB.Utility;
|
||||
using UnityEngine;
|
||||
using QSB.Patches;
|
||||
|
||||
namespace QSB.Player;
|
||||
|
||||
[HarmonyPatch(typeof(PlayerAttachPoint))]
|
||||
internal class PlayerAttachWatcher : MonoBehaviour, IAddComponentOnStart
|
||||
internal class PlayerAttachWatcher : QSBPatch
|
||||
{
|
||||
private void Awake()
|
||||
{
|
||||
Harmony.CreateAndPatchAll(typeof(PlayerAttachWatcher));
|
||||
Destroy(this);
|
||||
}
|
||||
public override QSBPatchTypes Type => QSBPatchTypes.OnModStart;
|
||||
|
||||
public static PlayerAttachPoint Current { get; private set; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user