From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Tue, 12 Dec 2023 00:49:59 +0000 (-0500) Subject: Fix pvs override error (#22366) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=70d663c0a68add8dd5f92f44ff2fb23f9165832e;p=space-station-14.git Fix pvs override error (#22366) --- diff --git a/Content.Server/GameTicking/GameTicker.RoundFlow.cs b/Content.Server/GameTicking/GameTicker.RoundFlow.cs index 34722e1f82..4568285c34 100644 --- a/Content.Server/GameTicking/GameTicker.RoundFlow.cs +++ b/Content.Server/GameTicking/GameTicker.RoundFlow.cs @@ -361,9 +361,11 @@ namespace Content.Server.GameTicking else if (mind.CurrentEntity != null && TryName(mind.CurrentEntity.Value, out var icName)) playerIcName = icName; - // Temporarily disabled to test if this causes issues on live servers - //if (TryGetEntity(mind.OriginalOwnedEntity, out var entity)) - // _pvsOverride.AddGlobalOverride(GetNetEntity(entity.Value), recursive: true); + if (TryGetEntity(mind.OriginalOwnedEntity, out var entity)) + { + // Temporarily disabled to test if this causes issues on live servers + // _pvsOverride.AddGlobalOverride(GetNetEntity(entity.Value), recursive: true); + } var roles = _roles.MindGetAllRoles(mindId);