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:
parent
28534c1599
commit
9546fbb64b
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user