From: 08A Date: Mon, 6 Mar 2023 18:08:53 +0000 (+0100) Subject: Fix reset ghost preview when a craft is selected (#14448) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2d0cd490b742138dd6527df2f090e6f18c385a94;p=space-station-14.git Fix reset ghost preview when a craft is selected (#14448) --- diff --git a/Content.Client/Construction/UI/ConstructionMenuPresenter.cs b/Content.Client/Construction/UI/ConstructionMenuPresenter.cs index 946306b329..0fdf1c1dd0 100644 --- a/Content.Client/Construction/UI/ConstructionMenuPresenter.cs +++ b/Content.Client/Construction/UI/ConstructionMenuPresenter.cs @@ -286,7 +286,14 @@ namespace Content.Client.Construction.UI private void UpdateGhostPlacement() { - if (_selected == null || _selected.Type != ConstructionType.Structure) return; + if (_selected == null) + return; + + if (_selected.Type != ConstructionType.Structure) + { + _placementManager.Clear(); + return; + } var constructSystem = _systemManager.GetEntitySystem();