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