summaryrefslogtreecommitdiff
path: root/src/SMAPI/SButtonState.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/SButtonState.cs')
-rw-r--r--src/SMAPI/SButtonState.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/SButtonState.cs b/src/SMAPI/SButtonState.cs
index 5f3e8d3c..ca2dd83d 100644
--- a/src/SMAPI/SButtonState.cs
+++ b/src/SMAPI/SButtonState.cs
@@ -23,7 +23,7 @@ namespace StardewModdingAPI
/// <param name="state">The button state.</param>
public static bool IsDown(this SButtonState state)
{
- return state == SButtonState.Held || state == SButtonState.Pressed;
+ return state is SButtonState.Held or SButtonState.Pressed;
}
}
}