Skip to content

Commit

Permalink
Merge pull request #52 from InvalidArgument3/roidnetworking-narrowing…
Browse files Browse the repository at this point in the history
…downthecause

remove THEN close
  • Loading branch information
InvalidArgument3 authored Jun 14, 2024
2 parents fbf28c8 + e0d577c commit 6a042d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,8 +307,8 @@ private void RemoveAsteroid(AsteroidEntity asteroid)
MyAPIGateway.Multiplayer.SendMessageToOthers(32000, removalMessageBytes);

_asteroids.Remove(asteroid);
asteroid.Close();
MyEntities.Remove(asteroid);
asteroid.Close();
Log.Info($"Server: Removed asteroid with ID {asteroid.EntityId} from _asteroids list and MyEntities");
}
}
Expand Down

0 comments on commit 6a042d2

Please sign in to comment.