Fix reset ghost preview when a craft is selected (#14448)

This commit is contained in:
08A
2023-03-06 19:08:53 +01:00
committed by GitHub
parent 0bd1756fb2
commit 2d0cd490b7

View File

@@ -286,7 +286,14 @@ namespace Content.Client.Construction.UI
private void UpdateGhostPlacement() 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>(); var constructSystem = _systemManager.GetEntitySystem<ConstructionSystem>();