Fix horrible lag in Zombies mode (#33818)
This commit is contained in:
@@ -49,10 +49,12 @@ public sealed class EntityWhitelistSystem : EntitySystem
|
|||||||
{
|
{
|
||||||
if (list.Components != null)
|
if (list.Components != null)
|
||||||
{
|
{
|
||||||
var regs = StringsToRegs(list.Components);
|
if (list.Registrations == null)
|
||||||
|
{
|
||||||
list.Registrations ??= new List<ComponentRegistration>();
|
var regs = StringsToRegs(list.Components);
|
||||||
list.Registrations.AddRange(regs);
|
list.Registrations = new List<ComponentRegistration>();
|
||||||
|
list.Registrations.AddRange(regs);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (list.MindRoles != null)
|
if (list.MindRoles != null)
|
||||||
|
|||||||
Reference in New Issue
Block a user