1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 20:02:58 +08:00

fix warnings

This commit is contained in:
OliBomby 2024-09-23 17:34:45 +02:00
parent 0f0f490598
commit b274ed9427
3 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ namespace osu.Game.Rulesets.Catch.Tests.Editor
AddClickStep(MouseButton.Left);
AddClickStep(MouseButton.Right);
AddAssert("banana shower is not placed", () => LastObject == null);
AddAssert("state is waiting", () => CurrentBlueprint?.PlacementActive == HitObjectPlacementBlueprint.PlacementState.Waiting);
AddAssert("state is waiting", () => CurrentBlueprint?.PlacementActive == PlacementBlueprint.PlacementState.Waiting);
}
[Test]

View File

@ -168,7 +168,7 @@ namespace osu.Game.Rulesets.Catch.Edit
if (EditorBeatmap.PlacementObject.Value is JuiceStream)
{
// Juice stream path is not subject to snapping.
if (BlueprintContainer.CurrentPlacement.PlacementActive is HitObjectPlacementBlueprint.PlacementState.Active)
if (BlueprintContainer.CurrentPlacement.PlacementActive is PlacementBlueprint.PlacementState.Active)
return null;
}

View File

@ -122,7 +122,7 @@ namespace osu.Game.Tests.Visual.Editing
AddAssert("editor is still current", () => Editor.IsCurrentScreen());
AddAssert("slider not placed", () => EditorBeatmap.HitObjects.Count, () => Is.EqualTo(0));
AddAssert("no active placement", () => this.ChildrenOfType<ComposeBlueprintContainer>().Single().CurrentPlacement.PlacementActive,
() => Is.EqualTo(HitObjectPlacementBlueprint.PlacementState.Waiting));
() => Is.EqualTo(PlacementBlueprint.PlacementState.Waiting));
}
[Test]