Don't recreate _entTraitDict on disconnect (#4200)

This commit is contained in:
Leon Friedrich
2023-07-29 18:16:25 +12:00
committed by GitHub
parent 8cc2a17444
commit cc0cc6afb1

View File

@@ -77,7 +77,10 @@ namespace Robust.Shared.GameObjects
_netComponents.Clear();
_entCompIndex.Clear();
_deleteSet.Clear();
FillComponentDict();
foreach (var dict in _entTraitDict.Values)
{
dict.Clear();
}
}
private void AddComponentRefType(CompIdx type)