don't start selection box on clickables

This commit is contained in:
Tyfon
2024-06-20 00:42:20 -07:00
parent bf6f63c73f
commit 4700ff5aa3
2 changed files with 6 additions and 3 deletions

View File

@@ -177,7 +177,7 @@ namespace UIFixes
public static void ShowDragCount(DraggedItemView draggedItemView)
{
if (Count > 1)
if (draggedItemView != null && Count > 1)
{
GameObject textOverlay = new("MultiSelectText", [typeof(RectTransform), typeof(TextMeshProUGUI)]);
textOverlay.transform.parent = draggedItemView.transform;