Fix horrible lag in Zombies mode (#33818)
This commit is contained in:
parent
fb6e85e87e
commit
59e955a559
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