From 375d47af6a00a76b43245d0ab8d5fa470fe32abd Mon Sep 17 00:00:00 2001 From: pozhiloy-enotik Date: Wed, 11 May 2022 15:30:51 +0200 Subject: [PATCH] Player.GetPlayer() --- DevourClient/Hacks/Misc.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) {