mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09: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:
@ -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);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user