1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 03:25:11 +08:00

revert EndPlacement change

This commit is contained in:
cdwcgt 2022-10-20 22:17:26 +09:00
parent d6ed561280
commit 42bb9dc3e3
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
2 changed files with 1 additions and 13 deletions

View File

@ -1,8 +1,6 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable disable
using System.Collections.Generic;
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Edit.Tools;
@ -19,16 +17,6 @@ namespace osu.Game.Rulesets.Taiko.Edit
{
}
public override void EndPlacement(HitObject hitObject, bool commit)
{
EditorBeatmap.PlacementObject.Value = null;
if (commit)
{
EditorBeatmap.Add(hitObject);
}
}
protected override IReadOnlyList<HitObjectCompositionTool> CompositionTools => new HitObjectCompositionTool[]
{
new HitCompositionTool(),

View File

@ -359,7 +359,7 @@ namespace osu.Game.Rulesets.Edit
EditorBeatmap.PlacementObject.Value = hitObject;
}
public virtual void EndPlacement(HitObject hitObject, bool commit)
public void EndPlacement(HitObject hitObject, bool commit)
{
EditorBeatmap.PlacementObject.Value = null;