Skip to content

Commit

Permalink
Fix build after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Reousa committed Jan 5, 2024
1 parent 866c969 commit ea0ca9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NebulaNetwork/Server.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,15 @@ internal void OnSocketDisconnection(INebulaConnection conn)

PlayerIdPool.Enqueue(player.Id);

Multiplayer.Session.PowerTowers.OnClientDisconnect();
Multiplayer.Session.PowerTowers.ResetAndBroadcast();
Multiplayer.Session.Statistics.UnRegisterPlayer(player.Id);
Multiplayer.Session.DysonSpheres.UnRegisterPlayer(conn);

//Notify players about queued building plans for drones
var DronePlans = DroneManager.GetPlayerDronePlans(player.Id);
if (DronePlans is { Length: > 0 } && player.Data.LocalPlanetId > 0)
{
Multiplayer.Session.Network.SendPacketToPlanet(new RemoveDroneOrdersPacket(DronePlans),
SendPacketToPlanet(new RemoveDroneOrdersPacket(DronePlans, player.Data.LocalPlanetId),
player.Data.LocalPlanetId);
//Remove it also from host queue, if host is on the same planet
if (GameMain.mainPlayer.planetId == player.Data.LocalPlanetId)
Expand Down

0 comments on commit ea0ca9e

Please sign in to comment.