mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Use generic Enum methods
This commit is contained in:
@ -115,7 +115,7 @@ namespace osu.Game.Skinning.Components
|
||||
.Cast<object?>()
|
||||
.ToArray();
|
||||
|
||||
foreach (var type in Enum.GetValues(typeof(BeatmapAttribute)).Cast<BeatmapAttribute>())
|
||||
foreach (var type in Enum.GetValues<BeatmapAttribute>())
|
||||
{
|
||||
numberedTemplate = numberedTemplate.Replace($"{{{{{type}}}}}", $"{{{1 + (int)type}}}");
|
||||
}
|
||||
|
Reference in New Issue
Block a user