mirror of
https://github.com/All-Of-Us-Mods/MiraAPI.git
synced 2026-10-19 15:51:48 +00:00
fix custom buttons
This commit is contained in:
1 parent
715d235bdc
commit
13dd0f4874
1 file changed
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user