diff --git a/DevourClient/Hacks/Misc.cs b/DevourClient/Hacks/Misc.cs index 815c0b1..0dfce28 100644 --- a/DevourClient/Hacks/Misc.cs +++ b/DevourClient/Hacks/Misc.cs @@ -3,6 +3,7 @@ using MelonLoader; using UnityEngine.UI; using System.Reflection; using System.Runtime.InteropServices; +using DevourClient.Helpers; namespace DevourClient.Hacks { @@ -10,7 +11,7 @@ namespace DevourClient.Hacks { public static void Fly(float speed) //normal speed 5f { - NolanBehaviour nb = Object.FindObjectOfType(); + NolanBehaviour nb = Player.GetPlayer(); Vector3 pos = nb.transform.position; if (Input.GetKey(KeyCode.W)) {