]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix reset ghost preview when a craft is selected (#14448)
author08A <git@08a.re>
Mon, 6 Mar 2023 18:08:53 +0000 (19:08 +0100)
committerGitHub <noreply@github.com>
Mon, 6 Mar 2023 18:08:53 +0000 (10:08 -0800)
Content.Client/Construction/UI/ConstructionMenuPresenter.cs

index 946306b3293300c53e867e4d43f5eb61092490dc..0fdf1c1dd065e76e5f2016fb3b2e3696eb632018 100644 (file)
@@ -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<ConstructionSystem>();