mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 01:42:59 +08:00
Merge pull request #5484 from iiSaLMaN/fix-transforming-mods-not-working
Fix transforming mods not working properly
This commit is contained in:
commit
2575884aa3
@ -147,12 +147,6 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
if (State.Value == newState && !force)
|
||||
return;
|
||||
|
||||
// apply any custom state overrides
|
||||
ApplyCustomUpdateState?.Invoke(this, newState);
|
||||
|
||||
if (newState == ArmedState.Hit)
|
||||
PlaySamples();
|
||||
|
||||
if (UseTransformStateManagement)
|
||||
{
|
||||
double transformTime = HitObject.StartTime - InitialLifetimeOffset;
|
||||
@ -177,6 +171,12 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
state.Value = newState;
|
||||
|
||||
UpdateState(newState);
|
||||
|
||||
// apply any custom state overrides
|
||||
ApplyCustomUpdateState?.Invoke(this, newState);
|
||||
|
||||
if (newState == ArmedState.Hit)
|
||||
PlaySamples();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user