1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +08:00

fix 0 velocity juicestream

This commit is contained in:
OliBomby 2023-04-30 16:43:26 +02:00
parent e7a478ce9c
commit 79f3cfec91

View File

@ -103,7 +103,7 @@ namespace osu.Game.Rulesets.Catch.Edit.Blueprints.Components
//
// The value is clamped here by the bindable min and max values.
// In case the required velocity is too large, the path is not preserved.
svBindable.Value = Math.Ceiling(requiredVelocity / svToVelocityFactor);
svBindable.Value = requiredVelocity == 0 ? 1 : Math.Ceiling(requiredVelocity / svToVelocityFactor);
path.ConvertToSliderPath(hitObject.Path, hitObject.LegacyConvertedY, hitObject.Velocity);