mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 06:57:39 +08:00
Remove unneeded check of caught object removal
The logic was public but now it is private so the condition is ensured by the caller
This commit is contained in:
parent
775c4bad97
commit
a8e2f35b62
@ -554,8 +554,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
||||
{
|
||||
var droppedObject = getDroppedObject(caughtObject);
|
||||
|
||||
if (!caughtObjectContainer.Remove(caughtObject))
|
||||
throw new InvalidOperationException("Can only drop objects that were previously caught on the plate");
|
||||
caughtObjectContainer.Remove(caughtObject);
|
||||
|
||||
droppedObjectTarget.Add(droppedObject);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user