From 299b2bda6b6ab80a1c99523e7c65a58ab949dfd3 Mon Sep 17 00:00:00 2001 From: DrSmugleaf Date: Fri, 3 Jul 2020 23:28:17 +0200 Subject: [PATCH] Fix sandbox panel not reopening properly after being closed by clicking its X (#1260) --- Content.Client/Sandbox/SandboxManager.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Content.Client/Sandbox/SandboxManager.cs b/Content.Client/Sandbox/SandboxManager.cs index 65559ba958..e20931fd58 100644 --- a/Content.Client/Sandbox/SandboxManager.cs +++ b/Content.Client/Sandbox/SandboxManager.cs @@ -36,7 +36,7 @@ namespace Content.Client.Sandbox private SandboxWindow _window; private EntitySpawnWindow _spawnWindow; private TileSpawnWindow _tilesSpawnWindow; - private bool _sandboxWindowToggled = false; + private bool _sandboxWindowToggled; public void Initialize() { @@ -114,6 +114,7 @@ namespace Content.Client.Sandbox { _window = null; _gameHud.SandboxButtonDown = false; + _sandboxWindowToggled = false; } private void OnRespawnButtonOnOnPressed(BaseButton.ButtonEventArgs args)