mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 02:09:52 +08:00
Throw exception on unknown hitobject.
This commit is contained in:
@@ -97,8 +97,7 @@ namespace osu.Game.Modes.Osu.Objects
|
||||
};
|
||||
break;
|
||||
default:
|
||||
//throw new InvalidOperationException($@"Unknown hit object type {type}");
|
||||
return null;
|
||||
throw new InvalidOperationException($@"Unknown hit object type {type}");
|
||||
}
|
||||
result.StartTime = Convert.ToDouble(split[2], CultureInfo.InvariantCulture);
|
||||
result.Sample = new HitSampleInfo
|
||||
|
||||
Reference in New Issue
Block a user