1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Made X position value of CatchHitObject clamp to CatchPlayfield's width

This commit is contained in:
Drison64 2022-09-18 17:29:08 +02:00
parent 1914c41d0d
commit 6d7d80a4fb

View File

@ -3,6 +3,7 @@
#nullable disable
using System;
using Newtonsoft.Json;
using osu.Framework.Bindables;
using osu.Game.Beatmaps;
@ -33,7 +34,7 @@ namespace osu.Game.Rulesets.Catch.Objects
[JsonIgnore]
public float X
{
set => originalX.Value = value;
set => originalX.Value = Math.Clamp(value, 0, CatchPlayfield.WIDTH);
}
private HitObjectProperty<float> xOffset;