Make clickmap lookups use the sprite tree (#13275)

Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
Leon Friedrich
2023-01-05 18:29:27 +13:00
committed by GitHub
parent edd90e750b
commit bf2ae6294d
8 changed files with 29 additions and 28 deletions

View File

@@ -20,6 +20,7 @@ using Robust.Shared.Input;
using Robust.Shared.Input.Binding;
using Robust.Shared.Prototypes;
using Robust.Shared.Utility;
using System.Linq;
using DrawDepth = Content.Shared.DrawDepth.DrawDepth;
namespace Content.Client.DragDrop
@@ -306,7 +307,7 @@ namespace Content.Client.DragDrop
if (_stateManager.CurrentState is GameplayState screen)
{
entities = screen.GetEntitiesUnderPosition(args.Coordinates);
entities = screen.GetClickableEntities(args.Coordinates).ToList();
}
else
{