Nullspace map entity is created every time the client joins the server. This fixes #520.

This commit is contained in:
Acruid
2020-01-20 00:36:34 -08:00
parent 57c3f63a26
commit 7c562af0aa
4 changed files with 9 additions and 9 deletions

View File

@@ -322,11 +322,7 @@ namespace Content.Server.GameTicking
// FIXME: Actually, definitely.
entity.Delete();
// Delete all maps outside of nullspace.
foreach (var mapId in _mapManager.GetAllMapIds().ToList())
// TODO: Maybe something less naive here?
if (mapId != MapId.Nullspace)
_mapManager.DeleteMap(mapId);
_mapManager.Restart();
// Delete the minds of everybody.
// TODO: Maybe move this into a separate manager?