make IsClassic and IsHideNSeek use assignable

This commit is contained in:
Nix-main committed 2026-08-05 22:53:17 -04:00
1 parent 04b7a9905d
commit 0230d98642
1 file changed
+4 -4
+4 -4
View File
@@ -46,16 +46,16 @@ public static class CustomGameModeManager
}
/// <summary>
/// Checks to see if the classic game mode is on.
/// Checks to see if the current game mode is an instance of the classic mode.
/// </summary>
/// <returns>True if the classic mode is the current one.</returns>
public static bool IsClassic() => IsActiveGameMode<ClassicMode>();
public static bool IsClassic() => ActiveMode != null && ActiveMode.GetType().IsAssignableTo(typeof(ClassicMode));
/// <summary>
/// Checks to see if the HNS game mode is on.
/// Checks to see if the current game mode is an instance of the HNS mode.
/// </summary>
/// <returns>True if the Hide & Seek mode is the current one.</returns>
public static bool IsHideNSeek() => IsActiveGameMode<HideAndSeekMode>();
public static bool IsHideNSeek() => ActiveMode != null && ActiveMode.GetType().IsAssignableTo(typeof(HideAndSeekMode));
/// <summary>
/// Checks if a provided GameMode is the current active one.