Skip to content

Commit

Permalink
do not infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantMohta committed Apr 27, 2024
1 parent 13dd7bf commit c6a9a1b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CustomKnight/CustomKnight.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<OutputType>Library</OutputType>
<RootNamespace>CustomKnight</RootNamespace>
<AssemblyName>CustomKnight</AssemblyName>
<AssemblyVersion>3.0.0</AssemblyVersion>
<AssemblyVersion>3.0.1</AssemblyVersion>
<TargetFramework>net472</TargetFramework>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
Expand Down
6 changes: 1 addition & 5 deletions CustomKnight/InputListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit c6a9a1b

Please sign in to comment.