mirror of
https://github.com/ppy/osu.git
synced 2026-06-09 09:04:15 +08:00
Add exception
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user