mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 18:31:17 +03:00
commit
77a4cda8bc
1 changed files with 6 additions and 4 deletions
|
|
@ -49,10 +49,12 @@ public sealed class EntityWhitelistSystem : EntitySystem
|
|||
{
|
||||
if (list.Components != null)
|
||||
{
|
||||
var regs = StringsToRegs(list.Components);
|
||||
|
||||
list.Registrations ??= new List<ComponentRegistration>();
|
||||
list.Registrations.AddRange(regs);
|
||||
if (list.Registrations == null)
|
||||
{
|
||||
var regs = StringsToRegs(list.Components);
|
||||
list.Registrations = new List<ComponentRegistration>();
|
||||
list.Registrations.AddRange(regs);
|
||||
}
|
||||
}
|
||||
|
||||
if (list.MindRoles != null)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue