1
0
mirror of https://github.com/ppy/osu synced 2024-12-12 18:07:52 +00:00

Prevent catcher from performing invalid catches

This commit is contained in:
Bartłomiej Dach 2020-08-20 18:58:07 +02:00
parent 28534c1599
commit 9546fbb64b

View File

@ -216,6 +216,9 @@ namespace osu.Game.Rulesets.Catch.UI
/// <returns>Whether the catch is possible.</returns>
public bool AttemptCatch(CatchHitObject fruit)
{
if (!fruit.CanBePlated)
return false;
var halfCatchWidth = catchWidth * 0.5f;
// this stuff wil disappear once we move fruit to non-relative coordinate space in the future.