mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Fix judgements being constructed too late.
This commit is contained in:
parent
5f79df3697
commit
8354fb5eb5
@ -56,13 +56,17 @@ namespace osu.Game.Modes.Objects.Drawables
|
||||
Sample?.Play();
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
//we may be setting a custom judgement in test cases or what not.
|
||||
if (Judgement == null)
|
||||
Judgement = CreateJudgement();
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
//force application of the state that was set before we loaded.
|
||||
UpdateState(State);
|
||||
|
Loading…
Reference in New Issue
Block a user