diff --git a/QSB/Player/PlayerAttachWatcher.cs b/QSB/Player/PlayerAttachWatcher.cs index b1eeaf06..58745b74 100644 --- a/QSB/Player/PlayerAttachWatcher.cs +++ b/QSB/Player/PlayerAttachWatcher.cs @@ -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; }