diff --git a/Content.Server/GameObjects/Components/Atmos/GasAnalyzerComponent.cs b/Content.Server/GameObjects/Components/Atmos/GasAnalyzerComponent.cs index 46cc78574f..841901b7cb 100644 --- a/Content.Server/GameObjects/Components/Atmos/GasAnalyzerComponent.cs +++ b/Content.Server/GameObjects/Components/Atmos/GasAnalyzerComponent.cs @@ -60,7 +60,7 @@ namespace Content.Server.GameObjects.Components.Atmos { _checkPlayer = true; _position = null; - UserInterface?.Open(session); + UserInterface?.Toggle(session); UpdateUserInterface(); Resync(); } @@ -75,7 +75,7 @@ namespace Content.Server.GameObjects.Components.Atmos { _checkPlayer = false; _position = pos; - UserInterface?.Open(session); + UserInterface?.Toggle(session); UpdateUserInterface(); Resync(); } diff --git a/Content.Server/GameObjects/Components/Instruments/InstrumentComponent.cs b/Content.Server/GameObjects/Components/Instruments/InstrumentComponent.cs index 8383d5b157..678acf50b0 100644 --- a/Content.Server/GameObjects/Components/Instruments/InstrumentComponent.cs +++ b/Content.Server/GameObjects/Components/Instruments/InstrumentComponent.cs @@ -294,7 +294,7 @@ namespace Content.Server.GameObjects.Components.Instruments private void OpenUserInterface(IPlayerSession session) { - UserInterface?.Open(session); + UserInterface?.Toggle(session); } public override void Update(float delta) diff --git a/Content.Server/GameObjects/Components/Kitchen/MicrowaveComponent.cs b/Content.Server/GameObjects/Components/Kitchen/MicrowaveComponent.cs index 17aa781a2f..514087c6da 100644 --- a/Content.Server/GameObjects/Components/Kitchen/MicrowaveComponent.cs +++ b/Content.Server/GameObjects/Components/Kitchen/MicrowaveComponent.cs @@ -195,7 +195,7 @@ namespace Content.Server.GameObjects.Components.Kitchen } _uiDirty = true; - UserInterface?.Open(actor.playerSession); + UserInterface?.Toggle(actor.playerSession); } public async Task InteractUsing(InteractUsingEventArgs eventArgs) diff --git a/Content.Server/GameObjects/Components/MagicMirrorComponent.cs b/Content.Server/GameObjects/Components/MagicMirrorComponent.cs index 48aaadd613..86236b742e 100644 --- a/Content.Server/GameObjects/Components/MagicMirrorComponent.cs +++ b/Content.Server/GameObjects/Components/MagicMirrorComponent.cs @@ -101,7 +101,7 @@ namespace Content.Server.GameObjects.Components return; } - UserInterface?.Open(actor.playerSession); + UserInterface?.Toggle(actor.playerSession); var msg = new MagicMirrorInitialDataMessage(looks.Appearance.HairColor, looks.Appearance.FacialHairColor, looks.Appearance.HairStyleName, looks.Appearance.FacialHairStyleName); diff --git a/Content.Server/GameObjects/Components/PDA/PDAComponent.cs b/Content.Server/GameObjects/Components/PDA/PDAComponent.cs index 69b310edb1..010a30f810 100644 --- a/Content.Server/GameObjects/Components/PDA/PDAComponent.cs +++ b/Content.Server/GameObjects/Components/PDA/PDAComponent.cs @@ -172,7 +172,7 @@ namespace Content.Server.GameObjects.Components.PDA return; } - UserInterface?.Open(actor.playerSession); + UserInterface?.Toggle(actor.playerSession); UpdatePDAAppearance(); } @@ -183,7 +183,7 @@ namespace Content.Server.GameObjects.Components.PDA return false; } - UserInterface?.Open(actor.playerSession); + UserInterface?.Toggle(actor.playerSession); UpdatePDAAppearance(); return true; } diff --git a/Content.Server/GameObjects/Components/Paper/PaperComponent.cs b/Content.Server/GameObjects/Components/Paper/PaperComponent.cs index ecae29f0a7..1af54a664b 100644 --- a/Content.Server/GameObjects/Components/Paper/PaperComponent.cs +++ b/Content.Server/GameObjects/Components/Paper/PaperComponent.cs @@ -53,7 +53,7 @@ namespace Content.Server.GameObjects.Components.Paper _mode = PaperAction.Read; UpdateUserInterface(); - UserInterface?.Open(actor.playerSession); + UserInterface?.Toggle(actor.playerSession); return true; } diff --git a/Content.Server/GameObjects/Components/VendingMachines/VendingMachineComponent.cs b/Content.Server/GameObjects/Components/VendingMachines/VendingMachineComponent.cs index 5b5420b31e..c1d5dfc96a 100644 --- a/Content.Server/GameObjects/Components/VendingMachines/VendingMachineComponent.cs +++ b/Content.Server/GameObjects/Components/VendingMachines/VendingMachineComponent.cs @@ -62,7 +62,7 @@ namespace Content.Server.GameObjects.Components.VendingMachines wires.OpenInterface(actor.playerSession); } else { - UserInterface?.Open(actor.playerSession); + UserInterface?.Toggle(actor.playerSession); } }