Inverted an if statement for code clarity

This commit is contained in:
OpenSauce04 2023-02-27 22:36:09 +00:00
parent 25ef1f199d
commit beb04379f9

View File

@ -67,15 +67,14 @@ namespace osu.Game.Rulesets.Taiko.Mods
public void Update(Playfield playfield) public void Update(Playfield playfield)
{ {
if (nonGameplayPeriods.IsInAny(gameplayClock.CurrentTime)) if (!nonGameplayPeriods.IsInAny(gameplayClock.CurrentTime)) return;
{
if (LastAcceptedDonAction != null) if (LastAcceptedDonAction != null)
LastAcceptedDonAction = null; LastAcceptedDonAction = null;
if (LastAcceptedKatAction != null) if (LastAcceptedKatAction != null)
LastAcceptedKatAction = null; LastAcceptedKatAction = null;
} }
}
protected abstract bool CheckValidNewAction(TaikoAction action); protected abstract bool CheckValidNewAction(TaikoAction action);