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