Skip to content

Commit

Permalink
Fix client keys not being generated
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaioru committed Nov 16, 2023
1 parent eed460d commit d4a105d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/Edelstein.Common.Gameplay/AbstractStageUser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ namespace Edelstein.Common.Gameplay;
public abstract class AbstractStageUser<TStageUser> : IStageUser<TStageUser>
where TStageUser : IStageUser<TStageUser>
{

protected AbstractStageUser(ISocket socket)
=> Socket = socket;

public int ID => Character?.ID ?? -1;

public ISocket Socket { get; }
Expand All @@ -26,7 +26,7 @@ protected AbstractStageUser(ISocket socket)
public IFriendList? Friends { get; set; }
public IPartyMembership? Party { get; set; }

public long Key { get; set; }
public long Key { get; set; } = Random.Shared.NextInt64();

public bool IsMigrating { get; set; }

Expand Down

0 comments on commit d4a105d

Please sign in to comment.