mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Clamp juice stream position
This commit is contained in:
@ -57,7 +57,7 @@ namespace osu.Game.Rulesets.Catch.Beatmaps
|
||||
foreach (var nested in juiceStream.NestedHitObjects)
|
||||
{
|
||||
if (nested is TinyDroplet tinyDroplet)
|
||||
tinyDroplet.X += rng.Next(-20, 20) / CatchPlayfield.BASE_WIDTH;
|
||||
tinyDroplet.X = MathHelper.Clamp(tinyDroplet.X + rng.Next(-20, 20) / CatchPlayfield.BASE_WIDTH, 0, 1);
|
||||
else if (nested is Droplet)
|
||||
rng.Next(); // osu!stable retrieved a random droplet rotation
|
||||
}
|
||||
|
Reference in New Issue
Block a user