diff --git a/NebulaNetwork/PacketProcessors/Session/SyncCompleteProcessor.cs b/NebulaNetwork/PacketProcessors/Session/SyncCompleteProcessor.cs index 6d2852bc1..1bf670dda 100644 --- a/NebulaNetwork/PacketProcessors/Session/SyncCompleteProcessor.cs +++ b/NebulaNetwork/PacketProcessors/Session/SyncCompleteProcessor.cs @@ -16,7 +16,7 @@ public class SyncCompleteProcessor : PacketProcessor public SyncCompleteProcessor() { - playerManager = MultiplayerHostSession.Instance?.PlayerManager; + playerManager = MultiplayerHostSession.Instance != null ? MultiplayerHostSession.Instance.PlayerManager : null; } public override void ProcessPacket(SyncComplete packet, NebulaConnection conn) @@ -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)); } } }