mirror of
https://github.com/ppy/osu.git
synced 2025-02-21 23:59:16 +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);
|
var droppedObject = getDroppedObject(caughtObject);
|
||||||
|
|
||||||
if (!caughtObjectContainer.Remove(caughtObject))
|
caughtObjectContainer.Remove(caughtObject);
|
||||||
throw new InvalidOperationException("Can only drop objects that were previously caught on the plate");
|
|
||||||
|
|
||||||
droppedObjectTarget.Add(droppedObject);
|
droppedObjectTarget.Add(droppedObject);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user