Fix T-ray scanner flickering (#9544)

This commit is contained in:
themias
2022-07-08 17:45:15 -04:00
committed by GitHub
parent 6d352fe90a
commit e78c836f36

View File

@@ -64,7 +64,7 @@ public sealed class TrayScannerSystem : EntitySystem
if (args.Current is not TrayScannerState state) if (args.Current is not TrayScannerState state)
return; 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 // 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 // last position. This is because appearance data gets reset, but if the position isn't reset the scanner won't