Skip to content

Commit

Permalink
Merge pull request #409 from PhantomGamers/patch-namesyncfix
Browse files Browse the repository at this point in the history
Update SyncCompleteProcessor.cs
  • Loading branch information
PhantomGamers authored Jul 30, 2021
2 parents 1403934 + b06e2ad commit 241b5be
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class SyncCompleteProcessor : PacketProcessor<SyncComplete>

public SyncCompleteProcessor()
{
playerManager = MultiplayerHostSession.Instance?.PlayerManager;
playerManager = MultiplayerHostSession.Instance != null ? MultiplayerHostSession.Instance.PlayerManager : null;
}

public override void ProcessPacket(SyncComplete packet, NebulaConnection conn)
Expand Down Expand Up @@ -56,7 +56,7 @@ public override void ProcessPacket(SyncComplete packet, NebulaConnection conn)
{
if (!string.IsNullOrEmpty(p.overrideName))
{
player.SendPacket(new NameInputPacket(p.overrideName, p.id, FactoryManager.PLANET_NONE, LocalPlayer.PlayerId));
player.SendPacket(new NameInputPacket(p.overrideName, FactoryManager.STAR_NONE, p.id, LocalPlayer.PlayerId));
}
}
}
Expand Down

0 comments on commit 241b5be

Please sign in to comment.