Skip to content

Commit

Permalink
Potentially fix bug with IsConnected(?)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xilophor committed Sep 7, 2024
1 parent b24c4bc commit e758ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LethalNetworkAPI/Utils/LNetworkUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static class LNetworkUtils
/// <summary>
/// Whether the client is connected to a server.
/// </summary>
public static bool IsConnected => NetworkManager.Singleton?.IsConnectedClient ?? false;
public static bool IsConnected => NetworkManager.Singleton?.LocalClient != null;

/// <summary>
/// Whether the client is the host or server.
Expand Down

0 comments on commit e758ba8

Please sign in to comment.