mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:28:00 +08:00
Add exception
This commit is contained in:
parent
35b5aeb99a
commit
c48a4d9993
@ -238,6 +238,9 @@ namespace osu.Game.Rulesets.Scoring
|
||||
return;
|
||||
|
||||
var result = CreateResult(judgement);
|
||||
if (result == null)
|
||||
throw new InvalidOperationException($"{GetType().ReadableName()} must provide a {nameof(JudgementResult)} through {nameof(CreateResult)}.");
|
||||
|
||||
result.Type = judgement.MaxResult;
|
||||
|
||||
applyResult(result);
|
||||
|
Loading…
Reference in New Issue
Block a user