From 053efa8c7e0b65e29167685a5e13d6b65cde31c8 Mon Sep 17 00:00:00 2001 From: _nebula <41904486+misternebula@users.noreply.github.com> Date: Sun, 7 May 2023 18:25:59 +0100 Subject: [PATCH] add suit check --- QSB/HUD/MultiplayerHUDManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/QSB/HUD/MultiplayerHUDManager.cs b/QSB/HUD/MultiplayerHUDManager.cs index 92343757..61e4741d 100644 --- a/QSB/HUD/MultiplayerHUDManager.cs +++ b/QSB/HUD/MultiplayerHUDManager.cs @@ -150,8 +150,9 @@ internal class MultiplayerHUDManager : MonoBehaviour, IAddComponentOnStart _playerList.gameObject.SetActive(ServerSettingsManager.ShowExtraHUD); + var inSuit = Locator.GetPlayerSuit().IsWearingHelmet(); - if (OWInput.IsNewlyPressed(InputLibrary.enter, InputMode.Character) && !_writingMessage) + if (OWInput.IsNewlyPressed(InputLibrary.enter, InputMode.Character) && !_writingMessage && inSuit) { OWInput.ChangeInputMode(InputMode.KeyboardInput); _writingMessage = true;