fix custom buttons

This commit is contained in:
XtraCube committed 2024-09-23 16:05:22 -04:00
1 parent 715d235bdc
commit 13dd0f4874
1 file changed
+2 -2
+2 -2
View File
@@ -328,7 +328,7 @@ public abstract class CustomActionButton<T> : CustomActionButton where T : MonoB
/// <returns>True if the target object is valid, false otherwise.</returns>
public virtual bool IsTargetValid(T? target)
{
return target;
return target != null;
}
/// <summary>
@@ -355,6 +355,6 @@ public abstract class CustomActionButton<T> : CustomActionButton where T : MonoB
Target = IsTargetValid(newTarget) ? newTarget : null;
SetOutline(true);
return base.CanUse() && Target;
return base.CanUse() && Target != null;
}
}