From e78c836f362132fb76e90a8f2be0a160568412b4 Mon Sep 17 00:00:00 2001 From: themias <89101928+themias@users.noreply.github.com> Date: Fri, 8 Jul 2022 17:45:15 -0400 Subject: [PATCH] Fix T-ray scanner flickering (#9544) --- Content.Shared/SubFloor/TrayScannerSystem.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Content.Shared/SubFloor/TrayScannerSystem.cs b/Content.Shared/SubFloor/TrayScannerSystem.cs index bab124c462..446417e0c8 100644 --- a/Content.Shared/SubFloor/TrayScannerSystem.cs +++ b/Content.Shared/SubFloor/TrayScannerSystem.cs @@ -64,7 +64,7 @@ public sealed class TrayScannerSystem : EntitySystem if (args.Current is not TrayScannerState state) return; - SetScannerEnabled(uid, scanner.Enabled, scanner); + SetScannerEnabled(uid, state.Enabled, scanner); // This is hacky and somewhat inefficient for the client. But when resetting predicted entities we have to unset // last position. This is because appearance data gets reset, but if the position isn't reset the scanner won't