Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Xilophor committed Sep 9, 2024
2 parents df87025 + e758ba8 commit f88a094
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 f88a094

Please sign in to comment.