Skip to content

Commit

Permalink
Fix IPlayer.IsConnected always returning true
Browse files Browse the repository at this point in the history
  • Loading branch information
lukespragg committed Apr 29, 2022
1 parent 16c16ef commit 2197eab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SevenDaysToDiePlayer.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Oxide.Core;
using Oxide.Core;
using Oxide.Core.Libraries;
using Oxide.Core.Libraries.Covalence;
using Platform.Steam;
Expand Down Expand Up @@ -88,7 +88,7 @@ internal SevenDaysPlayer(ClientInfo client) : this(((UserIdentifierSteam)client.
/// <summary>
/// Gets if the player is connected
/// </summary>
public bool IsConnected => client?.litenetPeerConnectId >= 0L;
public bool IsConnected => client?.litenetPeerConnectId > 0L;

/// <summary>
/// Returns if the player is sleeping
Expand Down

0 comments on commit 2197eab

Please sign in to comment.