Move MapManager restart after deleting every entity with a for loop.
This commit is contained in:
@@ -422,9 +422,7 @@ namespace Content.Server.GameTicking
|
||||
unCastData.ContentData()?.WipeMind();
|
||||
}
|
||||
|
||||
_mapManager.Restart();
|
||||
|
||||
// Delete all remaining entities.
|
||||
// Delete all entities.
|
||||
foreach (var entity in EntityManager.GetEntities().ToArray())
|
||||
{
|
||||
// TODO: Maybe something less naive here?
|
||||
@@ -432,6 +430,8 @@ namespace Content.Server.GameTicking
|
||||
EntityManager.DeleteEntity(entity);
|
||||
}
|
||||
|
||||
_mapManager.Restart();
|
||||
|
||||
_roleBanManager.Restart();
|
||||
|
||||
// Clear up any game rules.
|
||||
|
||||
Reference in New Issue
Block a user