From c6a9a1b713b51cbcd087b49b0851994b1539f3db Mon Sep 17 00:00:00 2001 From: Prashant Mohta Date: Sat, 27 Apr 2024 13:40:06 +0530 Subject: [PATCH] do not infinite loop --- CustomKnight/CustomKnight.csproj | 2 +- CustomKnight/InputListener.cs | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/CustomKnight/CustomKnight.csproj b/CustomKnight/CustomKnight.csproj index 84fc24b..74ec35c 100644 --- a/CustomKnight/CustomKnight.csproj +++ b/CustomKnight/CustomKnight.csproj @@ -3,7 +3,7 @@ Library CustomKnight CustomKnight - 3.0.0 + 3.0.1 net472 512 true diff --git a/CustomKnight/InputListener.cs b/CustomKnight/InputListener.cs index 2b3745d..51bbec8 100644 --- a/CustomKnight/InputListener.cs +++ b/CustomKnight/InputListener.cs @@ -15,12 +15,8 @@ private static IEnumerator ListenForInput() { while (true) { - if (GameManager.instance == null) - { - continue; - } - if (GameManager.instance.isPaused) + if (GameManager.instance != null && GameManager.instance.isPaused) { if (CustomKnight.GlobalSettings.Keybinds.OpenSkinList.WasPressed) {