1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 11:37:28 +08:00

Add exception

This commit is contained in:
smoogipoo 2018-08-06 12:29:12 +09:00
parent 35b5aeb99a
commit c48a4d9993

View File

@ -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);