fix: fixed all the warnings

This commit is contained in:
2023-01-08 18:45:56 +01:00
parent f0d949c274
commit 6532b34d7a
3 changed files with 12 additions and 13 deletions

View File

@@ -240,8 +240,7 @@ namespace DevourClient.Hacks
foreach (Il2Cpp.KeyBehaviour keyBehaviour in Helpers.Entities.Keys)
{
bool flag = keyBehaviour == null;
if (flag)
if (keyBehaviour == null)
{
return;
}

View File

@@ -28,7 +28,7 @@ namespace DevourClient.Render
GUI.color = color2;
}
public static Texture2D lineTex;
public static Texture2D lineTex = default!;
public static void DrawLine(Vector2 pointA, Vector2 pointB, Color color, float width)
{
Matrix4x4 matrix = GUI.matrix;

View File

@@ -22,7 +22,7 @@ namespace DevourClient.Helpers
{
if (Entities.LocalPlayer_ == null)
{
return null;
return null!;
}
return Entities.LocalPlayer_.GetComponent<Il2Cpp.NolanBehaviour>();
@@ -49,15 +49,15 @@ namespace DevourClient.Helpers
public class Entities
{
public static GameObject LocalPlayer_;
public static GameObject[] Players;
public static Il2Cpp.GoatBehaviour[] GoatsAndRats;
public static Il2Cpp.SurvivalInteractable[] SurvivalInteractables;
public static Il2Cpp.KeyBehaviour[] Keys;
public static Il2Cpp.SurvivalDemonBehaviour[] Demons;
public static Il2Cpp.SpiderBehaviour[] Spiders;
public static Il2Cpp.GhostBehaviour[] Ghosts;
public static Il2Cpp.SurvivalAzazelBehaviour[] Azazels;
public static GameObject LocalPlayer_ = default!;
public static GameObject[] Players = default!;
public static Il2Cpp.GoatBehaviour[] GoatsAndRats = default!;
public static Il2Cpp.SurvivalInteractable[] SurvivalInteractables = default!;
public static Il2Cpp.KeyBehaviour[] Keys = default!;
public static Il2Cpp.SurvivalDemonBehaviour[] Demons = default!;
public static Il2Cpp.SpiderBehaviour[] Spiders = default!;
public static Il2Cpp.GhostBehaviour[] Ghosts = default!;
public static Il2Cpp.SurvivalAzazelBehaviour[] Azazels = default!;
public static IEnumerator GetLocalPlayer()
{