mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Update LegacyBeatmapEncoder.cs
This commit is contained in:
parent
1484e78654
commit
fb37a14d57
@ -25,6 +25,8 @@ namespace osu.Game.Beatmaps.Formats
|
||||
public const int LATEST_VERSION = 128;
|
||||
|
||||
private readonly IBeatmap beatmap;
|
||||
|
||||
[CanBeNull]
|
||||
private readonly IBeatmapSkin skin;
|
||||
|
||||
/// <summary>
|
||||
@ -64,7 +66,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
handleControlPoints(writer);
|
||||
|
||||
writer.WriteLine();
|
||||
handleComboColours(writer);
|
||||
handleColours(writer);
|
||||
|
||||
writer.WriteLine();
|
||||
handleHitObjects(writer);
|
||||
@ -209,9 +211,9 @@ namespace osu.Game.Beatmaps.Formats
|
||||
}
|
||||
}
|
||||
|
||||
private void handleComboColours(TextWriter writer)
|
||||
private void handleColours(TextWriter writer)
|
||||
{
|
||||
var colours = skin.GetConfig<GlobalSkinColours, IReadOnlyList<Color4>>(GlobalSkinColours.ComboColours)?.Value;
|
||||
var colours = skin?.GetConfig<GlobalSkinColours, IReadOnlyList<Color4>>(GlobalSkinColours.ComboColours)?.Value;
|
||||
|
||||
if (colours == null || colours.Count == 0)
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user