Fix access mispredicts when having a remote in hand (#14451)

This commit is contained in:
DrSmugleaf
2023-03-06 11:10:35 -08:00
committed by GitHub
parent c9e70d8ea0
commit f4ccfc5e35
3 changed files with 16 additions and 7 deletions

View File

@@ -48,6 +48,7 @@ namespace Content.Shared.Access.Systems
continue;
component.Tags.UnionWith(proto.Tags);
Dirty(component);
}
}
@@ -111,6 +112,7 @@ namespace Content.Shared.Access.Systems
access.Tags.Clear();
access.Tags.UnionWith(prototype.Access);
Dirty(access);
TryAddGroups(uid, prototype.AccessGroups, access);