Predict Mind Roles (#39611)
This commit is contained in:
@@ -15,8 +15,8 @@ using Content.Shared.Mobs.Systems;
|
||||
using Content.Shared.Objectives.Systems;
|
||||
using Content.Shared.Players;
|
||||
using Content.Shared.Speech;
|
||||
|
||||
using Content.Shared.Whitelist;
|
||||
using Robust.Shared.Containers;
|
||||
using Robust.Shared.Map;
|
||||
using Robust.Shared.Network;
|
||||
using Robust.Shared.Player;
|
||||
@@ -36,6 +36,7 @@ public abstract partial class SharedMindSystem : EntitySystem
|
||||
[Dependency] private readonly ISharedPlayerManager _playerManager = default!;
|
||||
[Dependency] private readonly MetaDataSystem _metadata = default!;
|
||||
[Dependency] private readonly EntityWhitelistSystem _whitelist = default!;
|
||||
[Dependency] private readonly SharedContainerSystem _container = default!;
|
||||
|
||||
[ViewVariables]
|
||||
protected readonly Dictionary<NetUserId, EntityUid> UserMinds = new();
|
||||
@@ -64,6 +65,8 @@ public abstract partial class SharedMindSystem : EntitySystem
|
||||
|
||||
private void OnMindStartup(EntityUid uid, MindComponent component, ComponentStartup args)
|
||||
{
|
||||
component.MindRoleContainer = _container.EnsureContainer<Container>(uid, MindComponent.MindRoleContainerId);
|
||||
|
||||
if (component.UserId == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user