Don't predict mind examine (#23769)

(cherry picked from commit 05d42dce9e0d1554f8a4fa1c98bc19912352e001)
This commit is contained in:
Kara 2024-01-09 01:02:38 -07:00 committed by Debug
parent 703b4cb7cc
commit 8c3b51b23c
No known key found for this signature in database
GPG Key ID: 271270A74EF9C350
1 changed files with 5 additions and 0 deletions

View File

@ -21,6 +21,7 @@ namespace Content.Shared.Mind;
public abstract class SharedMindSystem : EntitySystem
{
[Dependency] private readonly ISharedAdminLogManager _adminLogger = default!;
[Dependency] private readonly INetManager _net = default!;
[Dependency] private readonly MobStateSystem _mobState = default!;
[Dependency] private readonly SharedObjectivesSystem _objectives = default!;
[Dependency] private readonly SharedPlayerSystem _player = default!;
@ -146,6 +147,10 @@ public abstract class SharedMindSystem : EntitySystem
if (!mindContainer.ShowExamineInfo || !args.IsInDetailsRange)
return;
// TODO predict we can't right now because session stuff isnt networked
if (_net.IsClient)
return;
var dead = _mobState.IsDead(uid);
var hasUserId = CompOrNull<MindComponent>(mindContainer.Mind)?.UserId;
var hasSession = CompOrNull<MindComponent>(mindContainer.Mind)?.Session;