From 69091eea240c193e6a4e67486c6c70ab5beea693 Mon Sep 17 00:00:00 2001 From: Morbo Date: Mon, 17 Jan 2022 14:34:39 +0300 Subject: [PATCH] NT Block Arcade correct session registeration (#6202) Co-authored-by: Paul Ritter --- Content.Server/Arcade/Components/BlockGameArcadeComponent.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs b/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs index 68b8496f9b..45d20e1261 100644 --- a/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs +++ b/Content.Server/Arcade/Components/BlockGameArcadeComponent.cs @@ -56,7 +56,10 @@ namespace Content.Server.Arcade.Components return; UserInterface?.Toggle(actor.PlayerSession); - RegisterPlayerSession(actor.PlayerSession); + if (UserInterface?.SessionHasOpen(actor.PlayerSession) == true) + { + RegisterPlayerSession(actor.PlayerSession); + } } private void RegisterPlayerSession(IPlayerSession session)